diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-05-05 12:03:48 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-08-19 15:37:22 +0200 |
commit | 00203025abbb16a0fc45ababa02550dcb4b20671 (patch) | |
tree | 6394cde2037dd336bac4fe3bc0dd59dff23293c3 /dottydoc/jvm/test/TestCommentParsing.scala | |
parent | 29cf43bca7e478f290e7c39a05ce7e8bcb218d3d (diff) | |
download | dotty-00203025abbb16a0fc45ababa02550dcb4b20671.tar.gz dotty-00203025abbb16a0fc45ababa02550dcb4b20671.tar.bz2 dotty-00203025abbb16a0fc45ababa02550dcb4b20671.zip |
Add test for checking if Array has documentation after compiling std lib
Diffstat (limited to 'dottydoc/jvm/test/TestCommentParsing.scala')
-rw-r--r-- | dottydoc/jvm/test/TestCommentParsing.scala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dottydoc/jvm/test/TestCommentParsing.scala b/dottydoc/jvm/test/TestCommentParsing.scala index 16e855957..12f60f6a6 100644 --- a/dottydoc/jvm/test/TestCommentParsing.scala +++ b/dottydoc/jvm/test/TestCommentParsing.scala @@ -5,5 +5,14 @@ import org.junit.Test import org.junit.Assert._ class TestWhitelistedCollections extends DottyTest { - @Test def test = assert(false) + @Test def arrayHasDocumentation = + checkCompile(WhitelistedStandardLib.files) { doc => + val array = doc + .packages("scala") + .children + .find(_.path.mkString(".") == "scala.Array") + .get + + assert(array.comment.get.body.length > 0) + } } |