aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 16:05:59 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 16:05:59 +0400
commit372ab94571e1ad5885982ea83d4b55286f1d6c23 (patch)
treeff8b4d3d1261da88515f528bc3a7aa083f7dbfb4 /test/src/model
parent52deaf7d9b31a4cc5ed36a280e07fdfeff975362 (diff)
downloaddokka-372ab94571e1ad5885982ea83d4b55286f1d6c23.tar.gz
dokka-372ab94571e1ad5885982ea83d4b55286f1d6c23.tar.bz2
dokka-372ab94571e1ad5885982ea83d4b55286f1d6c23.zip
Implement KotlinSignatureGenerator to render nodes back into text in Kotlin syntax.
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/PackageTest.kt24
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