Skip to content

Commit 43cdfb2

Browse files
committed
Make tests newline-independent.
1 parent 1d4184b commit 43cdfb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Naggum.Test/CompilerTest.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ type CompilerTest() =
2727
let startInfo = new ProcessStartInfo(executablePath, UseShellExecute = false, RedirectStandardOutput = true)
2828
let ``process`` = Process.Start startInfo
2929
``process``.WaitForExit()
30-
let result = ``process``.StandardOutput.ReadToEnd()
30+
let result = ``process``.StandardOutput.ReadToEnd().Replace("\r\n", "\n")
3131

32-
let reference = File.ReadAllText resultPath
32+
let reference = (File.ReadAllText resultPath).Replace("\r\n", "\n")
3333
Assert.Equal(reference, result)
3434

3535
[<Fact>]

0 commit comments

Comments
 (0)