diff --git a/tests/Visp.Compiler.UnitTests/TestUtils.fs b/tests/Visp.Compiler.UnitTests/TestUtils.fs index 205c097..c5fcc3e 100644 --- a/tests/Visp.Compiler.UnitTests/TestUtils.fs +++ b/tests/Visp.Compiler.UnitTests/TestUtils.fs @@ -88,6 +88,8 @@ let runWriteTest (name: string) = let filePathToReplace = Path.GetDirectoryName path |> Path.TrimEndingDirectorySeparator + let normalizedPathToReplace = Syntax.NormalizedPath(filePathToReplace).Path + try let parsed = CoreParser.parseFile path ParserOptions.Default @@ -97,6 +99,7 @@ let runWriteTest (name: string) = let output = stream .ToString() + .Replace(normalizedPathToReplace + "/", "") .Replace(filePathToReplace + "/", "") .Replace(filePathToReplace + "\\", "")