diff options
Diffstat (limited to 'dottydoc/jvm/test/TestWhitelistedStdLib.scala')
-rw-r--r-- | dottydoc/jvm/test/TestWhitelistedStdLib.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dottydoc/jvm/test/TestWhitelistedStdLib.scala b/dottydoc/jvm/test/TestWhitelistedStdLib.scala new file mode 100644 index 000000000..763f41370 --- /dev/null +++ b/dottydoc/jvm/test/TestWhitelistedStdLib.scala @@ -0,0 +1,17 @@ +package dotty.tools +package dottydoc + +import org.junit.Test +import org.junit.Assert._ + +class TestWhitelistedCollections extends DottyTest { + @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) + } +} |