From d627d2cfdfebcddd63669734efb82dfc66e7c7fe Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Sat, 12 Jul 2014 03:25:39 +0400 Subject: Convert string doc to structured DocumentationContent --- test/src/model/ClassTest.kt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/src/model/ClassTest.kt') 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("", 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("", 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("", 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("", 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("", 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()) -- cgit