Skip to content

Commit ff95503

Browse files
committed
Neg tests: filename checking updated
1 parent 955b04a commit ff95503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test/CompilerTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ abstract class CompilerTest {
197197
assert(errorLines.length == nerrors, s"Not enough errors recorded.")
198198

199199
val allFiles = (allArgs filter {
200-
case arg => arg.endsWith(".scala") || arg.endsWith(".java")
200+
arg => !arg.startsWith("-") && (arg.endsWith(".scala") || arg.endsWith(".java"))
201201
}).toList
202202
val expectedErrorsPerFile = allFiles.map(getErrors(_))
203203

0 commit comments

Comments
 (0)