aboutsummaryrefslogtreecommitdiff
path: root/test/src/model
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-12-22 20:01:01 +0300
committerIlya Ryzhenkov <orangy@jetbrains.com>2015-01-13 18:05:10 +0300
commit1b5f12b79d441bd2c2044e3b04925c4fab6f814b (patch)
tree97c0ef5aa82b9d6d94b1d502975a83f808584a35 /test/src/model
parent75e1f85d92d1a0485983103dd61c46447068c20f (diff)
downloaddokka-1b5f12b79d441bd2c2044e3b04925c4fab6f814b.tar.gz
dokka-1b5f12b79d441bd2c2044e3b04925c4fab6f814b.tar.bz2
dokka-1b5f12b79d441bd2c2044e3b04925c4fab6f814b.zip
Process directives, implement "code" directive.
Diffstat (limited to 'test/src/model')
-rw-r--r--test/src/model/CommentTest.kt35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/src/model/CommentTest.kt b/test/src/model/CommentTest.kt
index 2d87b928..63a957e7 100644
--- a/test/src/model/CommentTest.kt
+++ b/test/src/model/CommentTest.kt
@@ -142,4 +142,39 @@ line two""", toTestString())
}
}
}
+
+ Test fun directive() {
+ verifyModel("test/data/comments/directive.kt") { model ->
+ with(model.members.single().members.first()) {
+ assertEquals("Summary", content.summary.toTestString())
+ assertEquals(2, content.sections.count())
+ with (content.description) {
+ assertEquals("""[code]
+if (true) {
+ println(property)
+}
+[/code]
+
+[code]
+if (true) {
+ println(property)
+}
+[/code]
+
+[code]
+if (true) {
+ println(property)
+}
+[/code]
+
+[code]
+if (true) {
+ println(property)
+}
+[/code]
+""", toTestString())
+ }
+ }
+ }
+ }
}