From c2c0910d611df770be1e3ef9d45cc4fb070d9e11 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 14 Jul 2014 22:27:34 +0400 Subject: Fix tests --- test/src/model/CommentTest.kt | 15 ++++++--------- test/src/model/FunctionTest.kt | 6 +++--- 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'test/src') diff --git a/test/src/model/CommentTest.kt b/test/src/model/CommentTest.kt index 905aeaaf..6b976db9 100644 --- a/test/src/model/CommentTest.kt +++ b/test/src/model/CommentTest.kt @@ -24,9 +24,8 @@ public class CommentTest { Test fun multilineDoc() { verifyModel("test/data/comments/multilineDoc.kt") { model -> with(model.members.single().members.single()) { - assertEquals("""doc1 -doc2 -doc3""", doc.summary) + assertEquals("doc1", doc.summary) + assertEquals("doc2\ndoc3", doc.description) } } } @@ -34,9 +33,8 @@ doc3""", doc.summary) Test fun multipleDocs() { verifyModel("test/data/comments/multipleDocs.kt") { model -> with(model.members.single().members.single()) { - assertEquals("""doc1 -doc2 -doc3""", doc.summary) + assertEquals("doc1", doc.summary) + assertEquals("doc2\ndoc3", doc.description) } } } @@ -44,9 +42,8 @@ doc3""", doc.summary) Test fun multilineDocWithComment() { verifyModel("test/data/comments/multilineDocWithComment.kt") { model -> with(model.members.single().members.single()) { - assertEquals("""doc1 -doc2 -doc3""", doc.summary) + assertEquals("doc1", doc.summary) + assertEquals("doc2\ndoc3", doc.description) } } } diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt index 331c59ba..19769019 100644 --- a/test/src/model/FunctionTest.kt +++ b/test/src/model/FunctionTest.kt @@ -113,10 +113,10 @@ public class FunctionTest { with(model.members.single().members.single()) { assertEquals("function", name) assertEquals(DocumentationNode.Kind.Function, kind) - assertEquals("""Multiline -Function + assertEquals("Multiline", doc.summary) + assertEquals("""Function Documentation""" - , doc.summary) + , doc.description) assertEquals(4, details.count()) assertEquals("Unit", details.elementAt(0).name) -- cgit