We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e8d26 commit 43a76dfCopy full SHA for 43a76df
compiler/test/dotty/tools/vulpix/FileDiff.scala
@@ -21,8 +21,11 @@ object FileDiff {
21
else Using(Source.fromFile(checkFile, "UTF-8"))(_.getLines().toList).get
22
23
// handle check file path mismatch on windows
24
- def lineMatch(out: String, expect: String): Boolean =
25
- out == expect || File.separatorChar == '\\' && out.replace('\\', '/').stripLineEnd == expect
+ def lineMatch(actual: String, expect: String): Boolean = {
+ val actual1 = actual.stripLineEnd
26
+ val expect1 = expect.stripLineEnd
27
+ actual1 == expect1 || File.separatorChar == '\\' && actual1.replace('\\', '/') == expect1
28
+ }
29
30
def linesMatch =
31
outputLines.length == checkLines.length &&
0 commit comments