aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/model/CommentTest.kt26
-rw-r--r--test/src/model/PropertyTest.kt12
2 files changed, 6 insertions, 32 deletions
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)