Skip to content

Commit 8edaf50

Browse files
committed
normalize line endings
1 parent 42e5a1b commit 8edaf50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Typewriter.Test/MultipleNamespacesTestRunner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public static void Run(TestLanguage language)
8181
/// <param name="errorCounter">Error counter for the test run</param>
8282
private static void CompareFiles(StringBuilder testOutputBuilder, string expectedFilePath, string actualOutputFilePath, ref int errorCounter)
8383
{
84-
var expectedFileContents = File.ReadAllText(expectedFilePath);
85-
var actualFileContents = File.ReadAllText(actualOutputFilePath);
84+
var expectedFileContents = File.ReadAllText(expectedFilePath).Replace("\r", "");
85+
var actualFileContents = File.ReadAllText(actualOutputFilePath).Replace("\r", "");
8686
if (expectedFileContents != actualFileContents)
8787
{
8888
testOutputBuilder.AppendLine();

0 commit comments

Comments
 (0)