aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/CommentTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model/CommentTest.kt')
-rw-r--r--test/src/model/CommentTest.kt17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/src/model/CommentTest.kt b/test/src/model/CommentTest.kt
index 7da50c1a..f7d313fe 100644
--- a/test/src/model/CommentTest.kt
+++ b/test/src/model/CommentTest.kt
@@ -2,12 +2,13 @@ package org.jetbrains.dokka.tests
import org.junit.Test
import kotlin.test.*
+import org.jetbrains.dokka.*
public class CommentTest {
Test fun emptyDoc() {
verifyModel("test/data/comments/emptyDoc.kt") { model ->
with(model.nodes.single().members.single()) {
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
}
}
}
@@ -15,7 +16,7 @@ public class CommentTest {
Test fun emptyDocButComment() {
verifyModel("test/data/comments/emptyDocButComment.kt") { model ->
with(model.nodes.single().members.single()) {
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
}
}
}
@@ -25,7 +26,7 @@ public class CommentTest {
with(model.nodes.single().members.single()) {
assertEquals("""doc1
doc2
-doc3""", doc)
+doc3""", doc.summary)
}
}
}
@@ -35,7 +36,7 @@ doc3""", doc)
with(model.nodes.single().members.single()) {
assertEquals("""doc1
doc2
-doc3""", doc)
+doc3""", doc.summary)
}
}
}
@@ -45,7 +46,7 @@ doc3""", doc)
with(model.nodes.single().members.single()) {
assertEquals("""doc1
doc2
-doc3""", doc)
+doc3""", doc.summary)
}
}
}
@@ -53,7 +54,7 @@ doc3""", doc)
Test fun oneLineDoc() {
verifyModel("test/data/comments/oneLineDoc.kt") { model ->
with(model.nodes.single().members.single()) {
- assertEquals("doc", doc)
+ assertEquals("doc", doc.summary)
}
}
}
@@ -61,7 +62,7 @@ doc3""", doc)
Test fun oneLineDocWithComment() {
verifyModel("test/data/comments/oneLineDocWithComment.kt") { model ->
with(model.nodes.single().members.single()) {
- assertEquals("doc", doc)
+ assertEquals("doc", doc.summary)
}
}
}
@@ -69,7 +70,7 @@ doc3""", doc)
Test fun oneLineDocWithEmptyLine() {
verifyModel("test/data/comments/oneLineDocWithEmptyLine.kt") { model ->
with(model.nodes.single().members.single()) {
- assertEquals("doc", doc)
+ assertEquals("doc", doc.summary)
}
}
}