Skip to content

Commit

Permalink
Normalize line endings in structured output test
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 23, 2023
1 parent f1f7b0a commit 43ec534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Visp.Compiler.UnitTests/TestUtils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 43ec534

Please sign in to comment.