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