diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-01-12 14:05:25 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-31 14:31:07 +0100 |
commit | 3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052 (patch) | |
tree | f05f59ccae411d1909fc14aacbb8ad740769c778 /doc-tool/test | |
parent | ab80297a30fc5942b811e9b6287230894361466e (diff) | |
download | dotty-3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052.tar.gz dotty-3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052.tar.bz2 dotty-3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052.zip |
Port old site to dottydoc
Diffstat (limited to 'doc-tool/test')
-rw-r--r-- | doc-tool/test/WhitelistedStdLib.scala | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/doc-tool/test/WhitelistedStdLib.scala b/doc-tool/test/WhitelistedStdLib.scala index 3139498de..9092d1ded 100644 --- a/doc-tool/test/WhitelistedStdLib.scala +++ b/doc-tool/test/WhitelistedStdLib.scala @@ -33,16 +33,7 @@ class TestWhitelistedCollections extends DottyDocTest { } object TestWhitelistedCollections { - 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 - } + val files: List[String] = + StdLibSources.whitelisted + .filterNot(_.endsWith("package.scala")) } |