Skip to content

Commit 657e5d7

Browse files
committed
Fixed some small formatting issues in test suite
1 parent 0f03995 commit 657e5d7

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

test/testother.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4505,9 +4505,9 @@ class TestOther : public TestFixture {
45054505
ASSERT_EQUALS("[test.cpp:2]: (style) Clarify calculation precedence for '*' and '?'.\n", errout.str());
45064506

45074507
// Ticket #2585 - segmentation fault for invalid code
4508-
check("abcdef?" "?<"
4509-
"123456?" "?>"
4510-
"+?" "?=");
4508+
check("abcdef??<"
4509+
"123456??>"
4510+
"+??=");
45114511
ASSERT_EQUALS("", errout.str());
45124512

45134513
check("void f(char c) {\n"
@@ -7145,7 +7145,7 @@ class TestOther : public TestFixture {
71457145
void checkCastIntToCharAndBack() { // #160
71467146

71477147
// check getchar
7148-
check("void f(){ \n"
7148+
check("void f() {\n"
71497149
"unsigned char c;\n"
71507150
" while( (c = getchar()) != EOF)\n"
71517151
" {\n"
@@ -7154,7 +7154,7 @@ class TestOther : public TestFixture {
71547154
"}\n");
71557155
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
71567156

7157-
check("void f(){ \n"
7157+
check("void f() {\n"
71587158
"unsigned char c = getchar();\n"
71597159
" while( EOF != c)\n"
71607160
" {\n"
@@ -7163,7 +7163,7 @@ class TestOther : public TestFixture {
71637163
"}\n");
71647164
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
71657165

7166-
check("void f(){ \n"
7166+
check("void f() {\n"
71677167
"unsigned char c;\n"
71687168
" while( EOF != (c = getchar()) )\n"
71697169
" {\n"
@@ -7172,7 +7172,7 @@ class TestOther : public TestFixture {
71727172
"}\n");
71737173
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing getchar() return value in char variable and then comparing with EOF.\n", errout.str());
71747174

7175-
check("void f(){ \n"
7175+
check("void f() {\n"
71767176
"int i;\n"
71777177
" while( (i = getchar()) != EOF)\n"
71787178
" {\n"
@@ -7181,7 +7181,7 @@ class TestOther : public TestFixture {
71817181
"}\n");
71827182
ASSERT_EQUALS("", errout.str());
71837183

7184-
check("void f(){ \n"
7184+
check("void f() {\n"
71857185
"int i;\n"
71867186
" while( EOF != (i = getchar()) )\n"
71877187
" {\n"

test/testunusedvar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ class TestUnusedVar : public TestFixture {
17521752
"extern void SomeTestFunc(float);\n"
17531753
"void MyFuncNoError2()\n"
17541754
"{\n"
1755-
" const float floatC = 2.2f; \n"
1755+
" const float floatC = 2.2f;\n"
17561756
" float floatTot = g_float * floatC;\n"
17571757
" SomeTestFunc(floatTot);\n"
17581758
"}\n");

0 commit comments

Comments
 (0)