aboutsummaryrefslogtreecommitdiff
path: root/test/src/TopLevelFunctionTest.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 19:37:02 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 19:37:02 +0400
commit451b678c6bdff8b8242f299c600d100929a5171f (patch)
tree3c3352b54dcaf332c06aedcdbb11fb6ce0ac868e /test/src/TopLevelFunctionTest.kt
parent73316ee2806eeb5144a43d170a0157ba7164a959 (diff)
downloaddokka-451b678c6bdff8b8242f299c600d100929a5171f.tar.gz
dokka-451b678c6bdff8b8242f299c600d100929a5171f.tar.bz2
dokka-451b678c6bdff8b8242f299c600d100929a5171f.zip
Add processing of classes into model.
Diffstat (limited to 'test/src/TopLevelFunctionTest.kt')
-rw-r--r--test/src/TopLevelFunctionTest.kt37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/src/TopLevelFunctionTest.kt b/test/src/TopLevelFunctionTest.kt
deleted file mode 100644
index 342708f2..00000000
--- a/test/src/TopLevelFunctionTest.kt
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.jetbrains.dokka.tests
-
-import org.junit.Test
-import kotlin.test.*
-import com.jetbrains.dokka.*
-
-
-public class TopLevelFunctionTest {
- Test fun function() {
- verifyModel("test/data/functions/function.kt") { model ->
- val item = model.nodes.single().members.single()
- assertEquals(DocumentationNodeKind.Function, item.kind)
- assertEquals("fn", item.name)
- assertEquals("Function fn", item.doc)
- assertTrue(item.details.none())
- assertTrue(item.members.none())
- assertTrue(item.links.none())
- }
- }
-
- Test fun functionWithParams() {
- verifyModel("test/data/functions/functionWithParams.kt") { model ->
- val item = model.nodes.single().members.single()
- assertEquals(DocumentationNodeKind.Function, item.kind)
- assertEquals("function", item.name)
- assertEquals("""Multiline
-Function
-Documentation"""
- , item.doc)
- assertEquals("x", item.details.single().name)
- assertEquals(DocumentationNodeKind.Parameter, item.details.single().kind)
-
- assertTrue(item.members.none())
- assertTrue(item.links.none())
- }
- }
-} \ No newline at end of file