Skip to content

Commit

Permalink
Fix the ComplexTypeWithAttributeGroupExtension test on Linux and macOS
Browse files Browse the repository at this point in the history
On Linux and macOS, the generator writes with LF (instead of CRLF) so the normalization Regex was not matching `\r\n`.
  • Loading branch information
0xced committed May 26, 2021
1 parent 2d290d0 commit a479ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XmlSchemaClassGenerator.Tests/XmlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ public void BoolTest()

private static void CompareOutput(string expected, string actual)
{
static string Normalize(string input) => Regex.Replace(input, @"[ \t]*\r\n", "\n");
static string Normalize(string input) => Regex.Replace(input, @"[ \t]*\r?\n", "\n");
Assert.Equal(Normalize(expected), Normalize(actual));
}

Expand Down

0 comments on commit a479ac6

Please sign in to comment.