aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/test
diff options
context:
space:
mode:
Diffstat (limited to 'doc-tool/test')
-rw-r--r--doc-tool/test/WhitelistedStdLib.scala16
1 files changed, 3 insertions, 13 deletions
diff --git a/doc-tool/test/WhitelistedStdLib.scala b/doc-tool/test/WhitelistedStdLib.scala
index 48697ea7f..90df859e0 100644
--- a/doc-tool/test/WhitelistedStdLib.scala
+++ b/doc-tool/test/WhitelistedStdLib.scala
@@ -4,19 +4,9 @@ package dottydoc
import org.junit.Test
import org.junit.Assert._
-class TestWhitelistedCollections extends DottyTest {
- val files: List[String] = {
- val whitelist = "./test/dotc/scala-collections.whitelist"
-
- scala.io.Source.fromFile(whitelist, "UTF8")
- .getLines()
- .map(_.trim) // allow identation
- .filter(!_.startsWith("#")) // allow comment lines prefixed by #
- .map(_.takeWhile(_ != '#').trim) // allow comments in the end of line
- .filter(_.nonEmpty)
- .filterNot(_.endsWith("package.scala"))
- .toList
- }
+class WhitelistedStdLib extends DottyTest {
+ val files: List[String] =
+ StdLibSources.whitelisted.filterNot(_.endsWith("package.scala"))
@Test def arrayHasDocumentation =
checkFiles(files) { packages =>