Skip to content

Commit 66607ad

Browse files
committed
Move client test to client repo
1 parent 0abcfd4 commit 66607ad

File tree

2 files changed

+15
-48
lines changed

2 files changed

+15
-48
lines changed

dottydoc/test/WhitelistedStdLib.scala

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@ import org.junit.Test
55
import org.junit.Assert._
66

77
class TestWhitelistedCollections extends DottyTest {
8+
val files: List[String] = {
9+
val whitelist = "./test/dotc/scala-collections.whitelist"
10+
11+
scala.io.Source.fromFile(whitelist, "UTF8")
12+
.getLines()
13+
.map(_.trim) // allow identation
14+
.filter(!_.startsWith("#")) // allow comment lines prefixed by #
15+
.map(_.takeWhile(_ != '#').trim) // allow comments in the end of line
16+
.filter(_.nonEmpty)
17+
.filterNot(_.endsWith("package.scala"))
18+
.toList
19+
}
20+
821
@Test def arrayHasDocumentation =
9-
checkFiles(WhitelistedStandardLib.files) { doc =>
22+
checkFiles(files) { doc =>
1023
val array = doc
1124
.packages("scala")
1225
.children.find(_.path.mkString(".") == "scala.Array")
@@ -16,7 +29,7 @@ class TestWhitelistedCollections extends DottyTest {
1629
}
1730

1831
@Test def traitImmutableHasDocumentation =
19-
checkFiles(WhitelistedStandardLib.files) { doc =>
32+
checkFiles(files) { doc =>
2033
val imm = doc
2134
.packages("scala")
2235
.children.find(_.path.mkString(".") == "scala.Immutable")

dottydoc/test/WhitelistedStdLibMain.scala

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)