Skip to content

Commit

Permalink
Fix backslash on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusjarina committed Jul 26, 2019
1 parent 4759dcf commit e40b43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Tests/Interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void TestLuaHook()
main.lua-main.lua:11 (main)
";
expected = expected.Replace("\r","");
expected = expected.Replace('/', System.IO.Path.PathSeparator);
expected = expected.Replace('/', System.IO.Path.DirectorySeparatorChar);
output = output.Replace("\r","");
Assert.AreEqual(expected, output, "#1");
Assert.IsNotNull(state.Hook);
Expand Down Expand Up @@ -280,7 +280,7 @@ public void TestLuaHookStruct()
./foo.lua-foo.lua:8 (Lua)
main.lua-main.lua:11 (main)
";
expected = expected.Replace('/', System.IO.Path.PathSeparator);
expected = expected.Replace('/', System.IO.Path.DirectorySeparatorChar);
expected = expected.Replace("\r","");
output = output.Replace("\r","");

Expand Down

0 comments on commit e40b43a

Please sign in to comment.