diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 22:27:34 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 22:27:34 +0400 |
commit | c2c0910d611df770be1e3ef9d45cc4fb070d9e11 (patch) | |
tree | e3c81c265a899d1571c271dbfba8959824942be4 /test/src | |
parent | 93bd64fff14037ba350493b02701e8563fb92e4a (diff) | |
download | dokka-c2c0910d611df770be1e3ef9d45cc4fb070d9e11.tar.gz dokka-c2c0910d611df770be1e3ef9d45cc4fb070d9e11.tar.bz2 dokka-c2c0910d611df770be1e3ef9d45cc4fb070d9e11.zip |
Fix tests
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/model/CommentTest.kt | 15 | ||||
-rw-r--r-- | test/src/model/FunctionTest.kt | 6 |
2 files changed, 9 insertions, 12 deletions
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) |