From 16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Sat, 12 Jul 2014 04:40:26 +0400 Subject: Add test and fix ${long section} format. --- test/src/model/CommentTest.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/src') diff --git a/test/src/model/CommentTest.kt b/test/src/model/CommentTest.kt index 6c835f8d..b30cfbf4 100644 --- a/test/src/model/CommentTest.kt +++ b/test/src/model/CommentTest.kt @@ -157,4 +157,17 @@ line two""", text) } } } + + Test fun sectionWithBracedLabel() { + verifyModel("test/data/comments/sectionWithBracedLabel.kt") { model -> + with(model.nodes.single().members.single()) { + assertEquals("Summary", doc.summary) + assertEquals(1, doc.sections.count()) + with (doc.sections.elementAt(0)) { + assertEquals("this.label.is.really.long", label) + assertEquals("section one", text) + } + } + } + } } -- cgit