From dfdb0ccbce36b39ff53af759c91575eb9772dd71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Tue, 20 Feb 2024 17:26:53 -0800 Subject: [PATCH] Fix tests on linux --- Irony.Tests/EvaluatorTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Irony.Tests/EvaluatorTests.cs b/Irony.Tests/EvaluatorTests.cs index e2ab49e..b3dd542 100644 --- a/Irony.Tests/EvaluatorTests.cs +++ b/Irony.Tests/EvaluatorTests.cs @@ -124,7 +124,7 @@ public void TestEvaluator_BuiltIns() { script = @"print(format('{0} * {1} = {2}', 3, 4, 3 * 4))"; eval.Evaluate(script); result = eval.GetOutput(); - Assert.AreEqual("3 * 4 = 12\r\n", result, "Unexpected computation result"); + Assert.AreEqual("3 * 4 = 12" + Environment.NewLine, result, "Unexpected computation result"); //Add custom built-in method SayHello and test it eval.Runtime.BuiltIns.AddMethod(SayHello, "SayHello", 1, 1, "name");