From 6eae58007c98485358eb00edf24ea2d78876d88f Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Tue, 25 Oct 2016 01:06:33 +0100 Subject: [PATCH] Make TestCompletionOfClassTemplates more robust. --- src/Generator.Tests/AST/TestAST.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }