aboutsummaryrefslogtreecommitdiff
path: root/test/src/model/ClassTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r--test/src/model/ClassTest.kt24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/src/model/ClassTest.kt b/test/src/model/ClassTest.kt
index 8032b928..d5953811 100644
--- a/test/src/model/ClassTest.kt
+++ b/test/src/model/ClassTest.kt
@@ -10,7 +10,7 @@ public class ClassTest {
with(model.nodes.single().members.single()) {
assertEquals(DocumentationNodeKind.Class, kind)
assertEquals("Klass", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertEquals("<init>", members.single().name)
assertTrue(links.none())
@@ -23,7 +23,7 @@ public class ClassTest {
with(model.nodes.single().members.single()) {
assertEquals(DocumentationNodeKind.Class, kind)
assertEquals("Klass", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertEquals("<init>", members.single().name)
assertTrue(links.none())
@@ -36,7 +36,7 @@ public class ClassTest {
with(model.nodes.single().members.single()) {
assertEquals(DocumentationNodeKind.Object, kind)
assertEquals("Obj", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertTrue(members.none())
assertTrue(links.none())
@@ -49,20 +49,20 @@ public class ClassTest {
with (model.nodes.single().members.single()) {
assertEquals(DocumentationNodeKind.Class, kind)
assertEquals("Klass", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertTrue(links.none())
assertEquals(1, members.count())
with(members.elementAt(0)) {
assertEquals("<init>", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertEquals(DocumentationNodeKind.Constructor, kind)
assertEquals(1, details.count())
with(details.elementAt(0)) {
assertEquals("name", name)
assertEquals(DocumentationNodeKind.Parameter, kind)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertEquals("String", details.single().name)
assertTrue(links.none())
assertTrue(members.none())
@@ -79,14 +79,14 @@ public class ClassTest {
with(model.nodes.single().members.single()) {
assertEquals(DocumentationNodeKind.Class, kind)
assertEquals("Klass", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertTrue(links.none())
assertEquals(2, members.count())
with(members.elementAt(0)) {
assertEquals("<init>", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertEquals(DocumentationNodeKind.Constructor, kind)
assertTrue(details.none())
assertTrue(links.none())
@@ -94,7 +94,7 @@ public class ClassTest {
}
with(members.elementAt(1)) {
assertEquals("fn", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertEquals(DocumentationNodeKind.Function, kind)
assertEquals("Unit", details.single().name)
assertTrue(links.none())
@@ -109,14 +109,14 @@ public class ClassTest {
with(model.nodes.single().members.single()) {
assertEquals(DocumentationNodeKind.Class, kind)
assertEquals("Klass", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertTrue(details.none())
assertTrue(links.none())
assertEquals(2, members.count())
with(members.elementAt(0)) {
assertEquals("<init>", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertEquals(DocumentationNodeKind.Constructor, kind)
assertTrue(details.none())
assertTrue(members.none())
@@ -124,7 +124,7 @@ public class ClassTest {
}
with(members.elementAt(1)) {
assertEquals("name", name)
- assertEquals("", doc)
+ assertEquals(DocumentationContent.Empty, doc)
assertEquals(DocumentationNodeKind.Property, kind)
assertEquals("String", details.single().name)
assertTrue(members.none())