aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 22:27:34 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 22:27:34 +0400
commitc2c0910d611df770be1e3ef9d45cc4fb070d9e11 (patch)
treee3c81c265a899d1571c271dbfba8959824942be4 /test/src/model
parent93bd64fff14037ba350493b02701e8563fb92e4a (diff)
downloaddokka-c2c0910d611df770be1e3ef9d45cc4fb070d9e11.tar.gz
dokka-c2c0910d611df770be1e3ef9d45cc4fb070d9e11.tar.bz2
dokka-c2c0910d611df770be1e3ef9d45cc4fb070d9e11.zip
Fix tests
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/CommentTest.kt15
-rw-r--r--test/src/model/FunctionTest.kt6
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)