diff --git a/tests/Visp.Compiler.UnitTests/TestUtils.fs b/tests/Visp.Compiler.UnitTests/TestUtils.fs index 14eedd1..985c65b 100644 --- a/tests/Visp.Compiler.UnitTests/TestUtils.fs +++ b/tests/Visp.Compiler.UnitTests/TestUtils.fs @@ -54,7 +54,9 @@ let runStructuredOutputTest (name: string) = let nameParam = name.Replace('/', '_').Replace('\\', '_') - return! verify (sprintf "%A" parsed) "parsing-snapshots" nameParam + let output = (sprintf "%A" parsed).Replace("\r\n", "\n") + + return! verify output "parsing-snapshots" nameParam with :? ParseHelpers.SyntaxError as syn -> return raise <| (LexHelpers.syntaxErrorToParseError syn) }