From 5b24912e46d831434b8b4a12b0aedcf2b06c77e1 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Sat, 12 Jul 2014 02:41:12 +0400 Subject: Fix tests after adding type/upperbound information to model. --- test/src/model/PropertyTest.kt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'test/src/model/PropertyTest.kt') diff --git a/test/src/model/PropertyTest.kt b/test/src/model/PropertyTest.kt index 1d30f2ce..ed82bfec 100644 --- a/test/src/model/PropertyTest.kt +++ b/test/src/model/PropertyTest.kt @@ -11,7 +11,7 @@ public class PropertyTest { assertEquals("property", name) assertEquals(DocumentationNodeKind.Property, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(members.none()) assertTrue(links.none()) } @@ -24,7 +24,7 @@ public class PropertyTest { assertEquals("property", name) assertEquals(DocumentationNodeKind.Property, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(members.none()) assertTrue(links.none()) } @@ -37,13 +37,13 @@ public class PropertyTest { assertEquals("property", name) assertEquals(DocumentationNodeKind.Property, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(links.none()) with(members.single()) { assertEquals("", name) assertEquals(DocumentationNodeKind.Function, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(links.none()) assertTrue(members.none()) } @@ -57,7 +57,7 @@ public class PropertyTest { assertEquals("property", name) assertEquals(DocumentationNodeKind.Property, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(links.none()) assertEquals(2, members.count()) @@ -65,7 +65,7 @@ public class PropertyTest { assertEquals("", name) assertEquals(DocumentationNodeKind.Function, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(links.none()) assertTrue(members.none()) } @@ -73,11 +73,13 @@ public class PropertyTest { assertEquals("", name) assertEquals(DocumentationNodeKind.Function, kind) assertEquals("", doc) - with(details.single()) { + assertEquals(2, details.count()) + assertEquals("Unit", details.elementAt(0).name) + with(details.elementAt(1)) { assertEquals("value", name) assertEquals(DocumentationNodeKind.Parameter, kind) assertEquals("", doc) - assertTrue(details.none()) + assertEquals("String", details.single().name) assertTrue(links.none()) assertTrue(members.none()) } -- cgit