aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2014-12-29 21:05:53 +0100
committerDmitry Jemerov <yole@jetbrains.com>2014-12-29 21:05:53 +0100
commit2016ba9a4c6fbd1cc1644eff6d7ac606d624bd23 (patch)
tree500b9c6d48a2eec714bfbb390f5c29cd4730955f /test/src
parentcedaeb48615cf6f9aae3cbcd3917e9827ca5e67f (diff)
downloaddokka-2016ba9a4c6fbd1cc1644eff6d7ac606d624bd23.tar.gz
dokka-2016ba9a4c6fbd1cc1644eff6d7ac606d624bd23.tar.bz2
dokka-2016ba9a4c6fbd1cc1644eff6d7ac606d624bd23.zip
render class object properties and functions
Diffstat (limited to 'test/src')
-rw-r--r--test/src/TestAPI.kt3
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
2 files changed, 8 insertions, 1 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index a16a0b57..6f4e34c2 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -55,8 +55,9 @@ public fun verifyOutput(path: String, outputGenerator: (DocumentationModule, Str
verifyModel(path) {
val output = StringBuilder()
outputGenerator(it, output)
+ val trimmedOutput = output.toString().split('\n').map { it.trimTrailing() }.join("\n")
val expectedOutput = File(path.replace(".kt", ".md")).readText()
- assertEquals(expectedOutput, output.toString())
+ assertEquals(expectedOutput.trimTrailing(), trimmedOutput)
}
}
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt
index beb727da..ea501c53 100644
--- a/test/src/format/MarkdownFormatTest.kt
+++ b/test/src/format/MarkdownFormatTest.kt
@@ -13,4 +13,10 @@ public class MarkdownFormatTest {
markdownService.appendNodes(tempLocation, output, model.members.single().members)
}
}
+
+ Test fun classWithClassObject() {
+ verifyOutput("test/data/format/classWithClassObject.kt") { model, output ->
+ markdownService.appendNodes(tempLocation, output, model.members.single().members)
+ }
+ }
}