From 657e5d7ea2e13014c6807e71d03acc9c804ad202 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Mon, 4 Mar 2013 11:14:56 -0800 Subject: [PATCH] Fixed some small formatting issues in test suite --- test/testother.cpp | 16 ++++++++-------- test/testunusedvar.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/testother.cpp b/test/testother.cpp index 6b110a2d3..bf1cdd366 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -4505,9 +4505,9 @@ private: ASSERT_EQUALS("[test.cpp:2]: (style) Clarify calculation precedence for '*' and '?'.\n", errout.str()); // Ticket #2585 - segmentation fault for invalid code - check("abcdef?" "?<" - "123456?" "?>" - "+?" "?="); + check("abcdef??<" + "123456??>" + "+??="); ASSERT_EQUALS("", errout.str()); check("void f(char c) {\n" @@ -7145,7 +7145,7 @@ private: void checkCastIntToCharAndBack() { // #160 // check getchar - check("void f(){ \n" + check("void f() {\n" "unsigned char c;\n" " while( (c = getchar()) != EOF)\n" " {\n" @@ -7154,7 +7154,7 @@ private: "}\n"); ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str()); - check("void f(){ \n" + check("void f() {\n" "unsigned char c = getchar();\n" " while( EOF != c)\n" " {\n" @@ -7163,7 +7163,7 @@ private: "}\n"); ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str()); - check("void f(){ \n" + check("void f() {\n" "unsigned char c;\n" " while( EOF != (c = getchar()) )\n" " {\n" @@ -7172,7 +7172,7 @@ private: "}\n"); ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str()); - check("void f(){ \n" + check("void f() {\n" "int i;\n" " while( (i = getchar()) != EOF)\n" " {\n" @@ -7181,7 +7181,7 @@ private: "}\n"); ASSERT_EQUALS("", errout.str()); - check("void f(){ \n" + check("void f() {\n" "int i;\n" " while( EOF != (i = getchar()) )\n" " {\n" diff --git a/test/testunusedvar.cpp b/test/testunusedvar.cpp index efa382751..f957c78e2 100644 --- a/test/testunusedvar.cpp +++ b/test/testunusedvar.cpp @@ -1752,7 +1752,7 @@ private: "extern void SomeTestFunc(float);\n" "void MyFuncNoError2()\n" "{\n" - " const float floatC = 2.2f; \n" + " const float floatC = 2.2f;\n" " float floatTot = g_float * floatC;\n" " SomeTestFunc(floatTot);\n" "}\n");