diff options
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/model/PackageTest.kt | 24 |
1 files changed, 24 insertions, 0 deletions
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 |