diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 04:40:26 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 04:40:26 +0400 |
commit | 16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb (patch) | |
tree | c343f62cae43a87af590eb51f4987224082b2aac /test/src/model | |
parent | a6000809a34735ffe1c40bf07a9e291d3c767eb9 (diff) | |
download | dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.tar.gz dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.tar.bz2 dokka-16391ddfa1e069bbfe1b9b2c9ac2d985ce107fcb.zip |
Add test and fix ${long section} format.
Diffstat (limited to 'test/src/model')
-rw-r--r-- | test/src/model/CommentTest.kt | 13 |
1 files changed, 13 insertions, 0 deletions
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) + } + } + } + } } |