diff options
Diffstat (limited to 'test/src/model')
-rw-r--r-- | test/src/model/CommentTest.kt | 35 |
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()) + } + } + } + } } |