Skip to content

Commit f5b5a94

Browse files
committed
Merge pull request microsoft#5 from Microsoft/fixLineEndings
Fix line ending in test
2 parents db36521 + 80b8607 commit f5b5a94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Target "Run" (fun _ ->
1414
)
1515

1616
let testFile file =
17-
let baseline = File.ReadAllText("./baselines/" + file)
18-
let newFileWithLFEndings = File.ReadAllText("./generated/" + file).Replace(Environment.NewLine, "\n")
17+
let baseline = File.ReadAllText("./baselines/" + file).Replace("\r\n", "\n")
18+
let newFileWithLFEndings = File.ReadAllText("./generated/" + file).Replace("\r\n", "\n")
1919
if String.Equals(baseline, newFileWithLFEndings) then
2020
String.Empty
2121
else

0 commit comments

Comments
 (0)