From 372e9c796cc77aaff788df56a13deeef64b6edd7 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Wed, 18 Jan 2017 16:48:03 +0300 Subject: KT-15497 Dokka: Using of not-FQ name in @sample should be allowed --- core/src/test/kotlin/format/MarkdownFormatTest.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/src/test/kotlin/format') diff --git a/core/src/test/kotlin/format/MarkdownFormatTest.kt b/core/src/test/kotlin/format/MarkdownFormatTest.kt index c425e3f6..4f32fa53 100644 --- a/core/src/test/kotlin/format/MarkdownFormatTest.kt +++ b/core/src/test/kotlin/format/MarkdownFormatTest.kt @@ -236,6 +236,14 @@ class MarkdownFormatTest { verifyMarkdownPackage("typeAliases") } + @Test fun sampleByFQName() { + verifyMarkdownNode("sampleByFQName") + } + + @Test fun sampleByShortName() { + verifyMarkdownNode("sampleByShortName") + } + private fun verifyMarkdownPackage(fileName: String, withKotlinRuntime: Boolean = false) { verifyOutput("testdata/format/$fileName.kt", ".package.md", withKotlinRuntime = withKotlinRuntime) { model, output -> markdownService.createOutputBuilder(output, tempLocation).appendNodes(model.members) -- cgit