From 95057d82dbc8f7c64e8db96d837be693088d40dd Mon Sep 17 00:00:00 2001 From: Carsten Larsen Date: Sun, 22 Jan 2017 01:18:14 +0100 Subject: [PATCH] Fix newline in Windows test --- app/system/program_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/system/program_test.cpp b/app/system/program_test.cpp index 07090818..b6e7b832 100644 --- a/app/system/program_test.cpp +++ b/app/system/program_test.cpp @@ -327,8 +327,8 @@ void TestProgram::RunTestset5() TestStatement("g(y)=y^2+y*1.5+2", ""); TestStatement("h(x)=|x^3-2*x^2-16*x+6|", ""); TestStatement("a=2;b=3;c=a+b;", ""); - TestStatement("vars", "a = 2\nb = 3\nc = 5"); - TestStatement("funcs", "f(x)=x*2+1\ng(y)=y^2+y*1.5+2\nh(x)=|x^3-2*x^2-16*x+6|"); + TestStatement("vars", "a = 2" NEWLINE "b = 3" NEWLINE "c = 5"); + TestStatement("funcs", "f(x)=x*2+1" NEWLINE "g(y)=y^2+y*1.5+2" NEWLINE "h(x)=|x^3-2*x^2-16*x+6|"); TestStatement("f(2.2)", "f(2.2) = 5.4"); TestStatement("h(8.3)", "h(8.3) = 307.207"); TestStatement("c+1.1", "c+1.1 = 6.1"); @@ -336,7 +336,7 @@ void TestProgram::RunTestset5() TestStatement("eval d=d+1", "d=(d+1) = 2.1"); TestStatement("eval d=d+1", "d=(d+1) = 3.1"); TestStatement("eval d=d*2", "d=(d*2) = 6.2"); - TestStatement("vars", "a = 2\nb = 3\nc = 5\nd = 6.2"); + TestStatement("vars", "a = 2" NEWLINE "b = 3" NEWLINE "c = 5" NEWLINE "d = 6.2"); } #endif