From cb97c45aa0b0204ebc61a149794518d50b262814 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 1 Jul 2016 16:39:32 +0200 Subject: introduce GFM output format --- core/src/test/kotlin/format/GFMFormatTest.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 core/src/test/kotlin/format/GFMFormatTest.kt (limited to 'core/src/test/kotlin') diff --git a/core/src/test/kotlin/format/GFMFormatTest.kt b/core/src/test/kotlin/format/GFMFormatTest.kt new file mode 100644 index 00000000..7f7ee286 --- /dev/null +++ b/core/src/test/kotlin/format/GFMFormatTest.kt @@ -0,0 +1,19 @@ +package org.jetbrains.dokka.tests + +import org.jetbrains.dokka.GFMFormatService +import org.jetbrains.dokka.KotlinLanguageService +import org.junit.Test + +class GFMFormatTest { + private val gfmService = GFMFormatService(InMemoryLocationService, KotlinLanguageService()) + + @Test fun sample() { + verifyGFMNodeByName("sample", "Foo") + } + + private fun verifyGFMNodeByName(fileName: String, name: String) { + verifyOutput("testdata/format/gfm/$fileName.kt", ".md") { model, output -> + gfmService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == name }) + } + } +} -- cgit