aboutsummaryrefslogtreecommitdiff
path: root/dottydoc/jvm/test/TestCommentParsing.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-05-05 12:03:48 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-08-19 15:37:22 +0200
commit00203025abbb16a0fc45ababa02550dcb4b20671 (patch)
tree6394cde2037dd336bac4fe3bc0dd59dff23293c3 /dottydoc/jvm/test/TestCommentParsing.scala
parent29cf43bca7e478f290e7c39a05ce7e8bcb218d3d (diff)
downloaddotty-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.scala11
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)
+ }
}