diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/comments/emptySectionOnOneLine.kt | 2 | ||||
-rw-r--r-- | test/data/comments/sectionOnOneLine.kt | 2 | ||||
-rw-r--r-- | test/src/model/CommentTest.kt | 26 | ||||
-rw-r--r-- | test/src/model/PropertyTest.kt | 12 |
4 files changed, 6 insertions, 36 deletions
diff --git a/test/data/comments/emptySectionOnOneLine.kt b/test/data/comments/emptySectionOnOneLine.kt deleted file mode 100644 index b0d5defd..00000000 --- a/test/data/comments/emptySectionOnOneLine.kt +++ /dev/null @@ -1,2 +0,0 @@ -/** Summary $one:*/ -val property = "test"
\ No newline at end of file diff --git a/test/data/comments/sectionOnOneLine.kt b/test/data/comments/sectionOnOneLine.kt deleted file mode 100644 index 8bd3dd64..00000000 --- a/test/data/comments/sectionOnOneLine.kt +++ /dev/null @@ -1,2 +0,0 @@ -/** Summary $one: same line */ -val property = "test"
\ No newline at end of file diff --git a/test/src/model/CommentTest.kt b/test/src/model/CommentTest.kt index 5fc95726..51bcc735 100644 --- a/test/src/model/CommentTest.kt +++ b/test/src/model/CommentTest.kt @@ -125,32 +125,6 @@ public class CommentTest { } } - Test fun sectionOnOneLine() { - verifyModel("test/data/comments/sectionOnOneLine.kt") { model -> - with(model.members.single().members.single()) { - assertEquals("Summary", content.summary.toTestString()) - assertEquals(2, content.sections.count()) - with (content.sections["one"]!!) { - assertEquals("one", label) - assertEquals("same line", toTestString()) - } - } - } - } - - Test fun emptySectionOnOneLine() { - verifyModel("test/data/comments/emptySectionOnOneLine.kt") { model -> - with(model.members.single().members.single()) { - assertEquals("Summary", content.summary.toTestString()) - assertEquals(2, content.sections.count()) - with (content.sections["one"]!!) { - assertEquals("one", label) - assertEquals("", toTestString()) - } - } - } - } - Test fun multilineSection() { verifyModel("test/data/comments/multilineSection.kt") { model -> with(model.members.single().members.single()) { diff --git a/test/src/model/PropertyTest.kt b/test/src/model/PropertyTest.kt index 7cd287a0..103da170 100644 --- a/test/src/model/PropertyTest.kt +++ b/test/src/model/PropertyTest.kt @@ -40,8 +40,8 @@ public class PropertyTest { assertEquals("String", detail(DocumentationNode.Kind.Type).name) assertTrue(links.none()) with(members.single()) { - assertEquals("<get>", name) - assertEquals(DocumentationNode.Kind.Function, kind) + assertEquals("get", name) + assertEquals(DocumentationNode.Kind.PropertyAccessor, kind) assertEquals(Content.Empty, content) assertEquals("String", detail(DocumentationNode.Kind.Type).name) assertTrue(links.none()) @@ -66,8 +66,8 @@ public class PropertyTest { assertEquals(2, members.count()) with(members.elementAt(0)) { - assertEquals("<get>", name) - assertEquals(DocumentationNode.Kind.Function, kind) + assertEquals("get", name) + assertEquals(DocumentationNode.Kind.PropertyAccessor, kind) assertEquals(Content.Empty, content) val get_modifiers = details(DocumentationNode.Kind.Modifier).map { it.name } assertTrue("final" in get_modifiers) @@ -77,8 +77,8 @@ public class PropertyTest { assertTrue(members.none()) } with(members.elementAt(1)) { - assertEquals("<set-property>", name) - assertEquals(DocumentationNode.Kind.Function, kind) + assertEquals("set", name) + assertEquals(DocumentationNode.Kind.PropertyAccessor, kind) assertEquals(Content.Empty, content) assertEquals(4, details.count()) assertEquals("Unit", detail(DocumentationNode.Kind.Type).name) |