diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 17:44:02 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 17:44:02 +0400 |
commit | c540bc28a79092b212e575fa18d33399faee83b9 (patch) | |
tree | 48b7bdd02b3d948b2dae3950aa44cf57ef46d4f6 /test | |
parent | deae3bfbe0a5bda997f3033693879042a058de3a (diff) | |
download | dokka-c540bc28a79092b212e575fa18d33399faee83b9.tar.gz dokka-c540bc28a79092b212e575fa18d33399faee83b9.tar.bz2 dokka-c540bc28a79092b212e575fa18d33399faee83b9.zip |
Building model from nodes with references.
Diffstat (limited to 'test')
-rw-r--r-- | test/src/DiscoveryTest.kt | 15 | ||||
-rw-r--r-- | test/src/TopLevelFunctionTest.kt | 20 |
2 files changed, 20 insertions, 15 deletions
diff --git a/test/src/DiscoveryTest.kt b/test/src/DiscoveryTest.kt deleted file mode 100644 index f854b4d6..00000000 --- a/test/src/DiscoveryTest.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.jetbrains.dokka.tests - -import org.junit.Test -import kotlin.test.* - - -public class FunctionTest { - Test fun function() { - verifyFiles("test/data/function.kt") { model -> - val item = model.items.single() - assertEquals("fn", item.name) - assertEquals("doc", item.doc) - } - } -}
\ No newline at end of file diff --git a/test/src/TopLevelFunctionTest.kt b/test/src/TopLevelFunctionTest.kt new file mode 100644 index 00000000..a51b7bdd --- /dev/null +++ b/test/src/TopLevelFunctionTest.kt @@ -0,0 +1,20 @@ +package com.jetbrains.dokka.tests + +import org.junit.Test +import kotlin.test.* +import com.jetbrains.dokka.* + + +public class TopLevelFunctionTest { + Test fun function() { + verifyFiles("test/data/function.kt") { model -> + val item = model.nodes.single() + assertEquals(DocumentationNodeKind.Function, item.kind) + assertEquals("fn", item.name) + assertEquals("doc", item.doc) + assertTrue(item.details.none()) + assertTrue(item.members.none()) + assertTrue(item.links.none()) + } + } +}
\ No newline at end of file |