diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 03:25:39 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 03:25:39 +0400 |
commit | d627d2cfdfebcddd63669734efb82dfc66e7c7fe (patch) | |
tree | f0c60789cc4b529b86a6ba028bb2bd8a749d9b4c /test/src/model/ClassTest.kt | |
parent | 7bc3513935588467d4f848bbe40539664fdbdcf9 (diff) | |
download | dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.tar.gz dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.tar.bz2 dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.zip |
Convert string doc to structured DocumentationContent
Diffstat (limited to 'test/src/model/ClassTest.kt')
-rw-r--r-- | test/src/model/ClassTest.kt | 24 |
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()) |