Skip to content

Commit c7e8d26

Browse files
committed
Ignore windows line endings in line comparison
1 parent 0dfeb43 commit c7e8d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/vulpix/FileDiff.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ object FileDiff {
2222

2323
// handle check file path mismatch on windows
2424
def lineMatch(out: String, expect: String): Boolean =
25-
out == expect || File.separatorChar == '\\' && out.replace('\\', '/') == expect
25+
out == expect || File.separatorChar == '\\' && out.replace('\\', '/').stripLineEnd == expect
2626

2727
def linesMatch =
2828
outputLines.length == checkLines.length &&

0 commit comments

Comments
 (0)