diff options
| author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 20:53:46 +0400 |
|---|---|---|
| committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 20:53:46 +0400 |
| commit | 6afd7af76563f373e971256f8c9a7dcf42183fd4 (patch) | |
| tree | afd350714842b4ec4d9145b8edd43f2962a51290 /test/src/FunctionTest.kt | |
| parent | 044308ba60a0d4462ccb7388f16ad17a31d7450d (diff) | |
| download | dokka-6afd7af76563f373e971256f8c9a7dcf42183fd4.tar.gz dokka-6afd7af76563f373e971256f8c9a7dcf42183fd4.tar.bz2 dokka-6afd7af76563f373e971256f8c9a7dcf42183fd4.zip | |
Migrate tests to org.jetbrains.dokka
Diffstat (limited to 'test/src/FunctionTest.kt')
| -rw-r--r-- | test/src/FunctionTest.kt | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/src/FunctionTest.kt b/test/src/FunctionTest.kt deleted file mode 100644 index 90b937de..00000000 --- a/test/src/FunctionTest.kt +++ /dev/null @@ -1,43 +0,0 @@ -package org.jetbrains.dokka.tests - -import org.junit.Test -import kotlin.test.* -import org.jetbrains.dokka.* - -public class FunctionTest { - Test fun function() { - verifyModel("test/data/functions/function.kt") { model -> - with(model.nodes.single().members.single()) { - assertEquals("fn", name) - assertEquals(DocumentationNodeKind.Function, kind) - assertEquals("Function fn", doc) - assertTrue(details.none()) - assertTrue(members.none()) - assertTrue(links.none()) - } - } - } - - Test fun functionWithParams() { - verifyModel("test/data/functions/functionWithParams.kt") { model -> - with(model.nodes.single().members.single()) { - assertEquals("function", name) - assertEquals(DocumentationNodeKind.Function, kind) - assertEquals("""Multiline -Function -Documentation""" - , doc) - with(details.single()) { - assertEquals("x", name) - assertEquals(DocumentationNodeKind.Parameter, kind) - assertTrue(details.none()) - assertTrue(members.none()) - assertTrue(links.none()) - } - - assertTrue(members.none()) - assertTrue(links.none()) - } - } - } -}
\ No newline at end of file |
