aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test/ScannerTest.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test/ScannerTest.scala b/test/test/ScannerTest.scala
index 7c22fe595..78a54301f 100644
--- a/test/test/ScannerTest.scala
+++ b/test/test/ScannerTest.scala
@@ -9,8 +9,8 @@ import org.junit.Test
class ScannerTest extends DottyTest {
val blackList = List(
- "../scala/src/scaladoc/scala/tools/nsc/doc/html/page/Index.scala",
- "../scala/src/scaladoc/scala/tools/nsc/doc/html/page/Template.scala"
+ "/scaladoc/scala/tools/nsc/doc/html/page/Index.scala",
+ "/scaladoc/scala/tools/nsc/doc/html/page/Template.scala"
)
def scan(name: String): Unit = scan(new PlainFile(name))
@@ -31,12 +31,12 @@ class ScannerTest extends DottyTest {
def scanDir(path: String): Unit = scanDir(Directory(path))
def scanDir(dir: Directory): Unit = {
- if (blackList contains dir.jfile.toString)
+ if (blackList exists (dir.jfile.toString endsWith _))
println(s"blacklisted package: ${dir.jfile.getAbsolutePath}")
else
for (f <- dir.files)
if (f.name.endsWith(".scala"))
- if (blackList contains f.jfile.toString)
+ if (blackList exists (f.jfile.toString endsWith _))
println(s"blacklisted file: ${f.jfile.getAbsolutePath}")
else
scan(new PlainFile(f))