diff --git a/src/Generator.Tests/AST/TestAST.cs b/src/Generator.Tests/AST/TestAST.cs index 714c5635..d4e129d9 100644 --- a/src/Generator.Tests/AST/TestAST.cs +++ b/src/Generator.Tests/AST/TestAST.cs @@ -396,8 +396,8 @@ namespace CppSharp.Generator.Tests.AST public void TestCompletionOfClassTemplates() { var templates = AstContext.FindDecl("ForwardedTemplate").ToList(); - var template = templates.Single( - t => t.DebugText == "template \r\nclass ForwardedTemplate\r\n{\r\n}"); + var template = templates.Single(t => t.DebugText.Replace("\r", string.Empty) == + "template \r\nclass ForwardedTemplate\r\n{\r\n}".Replace("\r", string.Empty)); Assert.IsFalse(template.IsIncomplete); }