Skip to content

Commit 56a1180

Browse files
committed
Fixed ScannerTest to make it work with relative paths
1 parent 2ac4a54 commit 56a1180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test/ScannerTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class ScannerTest extends DottyTest {
3131
def scanDir(path: String): Unit = scanDir(Directory(path))
3232

3333
def scanDir(dir: Directory): Unit = {
34-
if (blackList contains dir.jfile.getAbsolutePath)
34+
if (blackList contains dir.jfile.toString)
3535
println(s"blacklisted package: ${dir.jfile.getAbsolutePath}")
3636
else
3737
for (f <- dir.files)
3838
if (f.name.endsWith(".scala"))
39-
if (blackList contains f.jfile.getAbsolutePath)
39+
if (blackList contains f.jfile.toString)
4040
println(s"blacklisted file: ${f.jfile.getAbsolutePath}")
4141
else
4242
scan(new PlainFile(f))

0 commit comments

Comments
 (0)