Skip to content

Commit d3a2c2a

Browse files
committed
Make the harness report a failure if the line endings differ from the baselines
1 parent 15f4b58 commit d3a2c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/harness/harness.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,9 +1702,9 @@ module Harness {
17021702
expected = IO.readFile(refFileName);
17031703
}
17041704

1705-
var lineEndingSensitive = opts && opts.LineEndingSensitive;
1705+
var lineEndingInsensitive = opts && opts.LineEndingSensitive === false; // default is true
17061706

1707-
if (!lineEndingSensitive) {
1707+
if (lineEndingInsensitive) {
17081708
expected = expected.replace(/\r\n?/g, '\n');
17091709
actual = actual.replace(/\r\n?/g, '\n');
17101710
}

0 commit comments

Comments
 (0)