diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 02:41:12 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 02:41:12 +0400 |
commit | 5b24912e46d831434b8b4a12b0aedcf2b06c77e1 (patch) | |
tree | b48e394dc3f8bebcdea06a10cc7195c8fe4515cf /test/src/model/PropertyTest.kt | |
parent | e155d101a52f62b0c8c10778fdf0068549b413be (diff) | |
download | dokka-5b24912e46d831434b8b4a12b0aedcf2b06c77e1.tar.gz dokka-5b24912e46d831434b8b4a12b0aedcf2b06c77e1.tar.bz2 dokka-5b24912e46d831434b8b4a12b0aedcf2b06c77e1.zip |
Fix tests after adding type/upperbound information to model.
Diffstat (limited to 'test/src/model/PropertyTest.kt')
-rw-r--r-- | test/src/model/PropertyTest.kt | 18 |
1 files changed, 10 insertions, 8 deletions
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("<get-property>", 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("<get-property>", 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("<set-property>", 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()) } |