From 1b5f12b79d441bd2c2044e3b04925c4fab6f814b Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 22 Dec 2014 20:01:01 +0300 Subject: Process directives, implement "code" directive. --- test/src/model/CommentTest.kt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'test/src/model') 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()) + } + } + } + } } -- cgit