diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/function.kt | 4 | ||||
-rw-r--r-- | test/src/DiscoveryTest.kt | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/data/function.kt b/test/data/function.kt index e69de29b..878b017b 100644 --- a/test/data/function.kt +++ b/test/data/function.kt @@ -0,0 +1,4 @@ +/** + * doc + */ +fun fn() {}
\ No newline at end of file diff --git a/test/src/DiscoveryTest.kt b/test/src/DiscoveryTest.kt index 690f0404..f854b4d6 100644 --- a/test/src/DiscoveryTest.kt +++ b/test/src/DiscoveryTest.kt @@ -1,12 +1,15 @@ package com.jetbrains.dokka.tests import org.junit.Test +import kotlin.test.* public class FunctionTest { Test fun function() { - verifyFiles("test/data/function.kt") { - + 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 |