aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/test
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-01-12 16:18:20 +0700
committerGitHub <noreply@github.com>2017-01-12 16:18:20 +0700
commit36237cbc7449079574b4171a85bc7dccf19e371d (patch)
tree45bf3fd30f0ad343268f2dadba365cbb67f3c227 /doc-tool/test
parentba7e12999dc645dbcba04cf365dfd4d621ee4662 (diff)
parent783a80d0d8f726f7169022457152d4301779244f (diff)
downloaddotty-36237cbc7449079574b4171a85bc7dccf19e371d.tar.gz
dotty-36237cbc7449079574b4171a85bc7dccf19e371d.tar.bz2
dotty-36237cbc7449079574b4171a85bc7dccf19e371d.zip
Merge pull request #1880 from dotty-staging/improve-whitelist-infrastructure
Improve whitelist infrastructure.
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 =>