From 372ab94571e1ad5885982ea83d4b55286f1d6c23 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Sat, 12 Jul 2014 16:05:59 +0400 Subject: Implement KotlinSignatureGenerator to render nodes back into text in Kotlin syntax. --- test/src/model/PackageTest.kt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test/src/model') diff --git a/test/src/model/PackageTest.kt b/test/src/model/PackageTest.kt index 8fda37ea..aa4bd088 100644 --- a/test/src/model/PackageTest.kt +++ b/test/src/model/PackageTest.kt @@ -65,4 +65,28 @@ public class PackageTest { } } } + + Test fun multipleFilesSamePackage() { + verifyModel("test/data/packages/simpleNamePackage.kt", "test/data/packages/simpleNamePackage2.kt") { model -> + assertEquals(2, model.members.count()) + with(model.members.elementAt(0)) { + assertEquals(DocumentationNode.Kind.Package, kind) + assertEquals("simple", name) + assertEquals(DocumentationContent.Empty, doc) + assertTrue(details.none()) + assertTrue(members.none()) + assertTrue(links.none()) + } + // TODO: Looks like package fragments should be merged into package view in the model + // and here should be single member + with(model.members.elementAt(1)) { + assertEquals(DocumentationNode.Kind.Package, kind) + assertEquals("simple", name) + assertEquals(DocumentationContent.Empty, doc) + assertTrue(details.none()) + assertTrue(members.none()) + assertTrue(links.none()) + } + } + } } \ No newline at end of file -- cgit