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.kt30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/src/model/CommentTest.kt b/test/src/model/CommentTest.kt
index b30cfbf4..905aeaaf 100644
--- a/test/src/model/CommentTest.kt
+++ b/test/src/model/CommentTest.kt
@@ -7,7 +7,7 @@ import org.jetbrains.dokka.*
public class CommentTest {
Test fun emptyDoc() {
verifyModel("test/data/comments/emptyDoc.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals(DocumentationContent.Empty, doc)
}
}
@@ -15,7 +15,7 @@ public class CommentTest {
Test fun emptyDocButComment() {
verifyModel("test/data/comments/emptyDocButComment.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals(DocumentationContent.Empty, doc)
}
}
@@ -23,7 +23,7 @@ public class CommentTest {
Test fun multilineDoc() {
verifyModel("test/data/comments/multilineDoc.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("""doc1
doc2
doc3""", doc.summary)
@@ -33,7 +33,7 @@ doc3""", doc.summary)
Test fun multipleDocs() {
verifyModel("test/data/comments/multipleDocs.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("""doc1
doc2
doc3""", doc.summary)
@@ -43,7 +43,7 @@ doc3""", doc.summary)
Test fun multilineDocWithComment() {
verifyModel("test/data/comments/multilineDocWithComment.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("""doc1
doc2
doc3""", doc.summary)
@@ -53,7 +53,7 @@ doc3""", doc.summary)
Test fun oneLineDoc() {
verifyModel("test/data/comments/oneLineDoc.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("doc", doc.summary)
}
}
@@ -61,7 +61,7 @@ doc3""", doc.summary)
Test fun oneLineDocWithComment() {
verifyModel("test/data/comments/oneLineDocWithComment.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("doc", doc.summary)
}
}
@@ -69,7 +69,7 @@ doc3""", doc.summary)
Test fun oneLineDocWithEmptyLine() {
verifyModel("test/data/comments/oneLineDocWithEmptyLine.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("doc", doc.summary)
}
}
@@ -77,7 +77,7 @@ doc3""", doc.summary)
Test fun emptySection() {
verifyModel("test/data/comments/emptySection.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("Summary", doc.summary)
assertEquals(1, doc.sections.count())
with (doc.sections.elementAt(0)) {
@@ -90,7 +90,7 @@ doc3""", doc.summary)
Test fun section1() {
verifyModel("test/data/comments/section1.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("Summary", doc.summary)
assertEquals(1, doc.sections.count())
with (doc.sections.elementAt(0)) {
@@ -103,7 +103,7 @@ doc3""", doc.summary)
Test fun section2() {
verifyModel("test/data/comments/section2.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("Summary", doc.summary)
assertEquals(2, doc.sections.count())
with (doc.sections.elementAt(0)) {
@@ -120,7 +120,7 @@ doc3""", doc.summary)
Test fun sectionOnOneLine() {
verifyModel("test/data/comments/sectionOnOneLine.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("Summary", doc.summary)
assertEquals(1, doc.sections.count())
with (doc.sections.elementAt(0)) {
@@ -133,7 +133,7 @@ doc3""", doc.summary)
Test fun emptySectionOnOneLine() {
verifyModel("test/data/comments/emptySectionOnOneLine.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("Summary", doc.summary)
assertEquals(1, doc.sections.count())
with (doc.sections.elementAt(0)) {
@@ -146,7 +146,7 @@ doc3""", doc.summary)
Test fun multilineSection() {
verifyModel("test/data/comments/multilineSection.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("Summary", doc.summary)
assertEquals(1, doc.sections.count())
with (doc.sections.elementAt(0)) {
@@ -160,7 +160,7 @@ line two""", text)
Test fun sectionWithBracedLabel() {
verifyModel("test/data/comments/sectionWithBracedLabel.kt") { model ->
- with(model.nodes.single().members.single()) {
+ with(model.members.single().members.single()) {
assertEquals("Summary", doc.summary)
assertEquals(1, doc.sections.count())
with (doc.sections.elementAt(0)) {