From 5913c47854b0cdbaccf1ad6267c2063b1e64d5ed Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Wed, 27 Dec 2023 11:16:55 +0100 Subject: [PATCH] Replace normalized paths in TestUtils --- tests/Visp.Compiler.UnitTests/TestUtils.fs | 3 +++ 1 file changed, 3 insertions(+) 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 + "\\", "")