run astyle

This commit is contained in:
XhmikosR 2013-03-29 10:30:40 +02:00 committed by PKEuS
parent 99fc5f6203
commit a9955cce8e
1 changed files with 8 additions and 8 deletions

View File

@ -7374,7 +7374,7 @@ private:
check("void f(){\n"
" char ch;\n"
" while ((ch = std::cin.get()) != EOF) {\n"
" std::cout << ch;\n"
" std::cout << ch;\n"
" }\n"
"}");
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing cin.get() return value in char variable and then comparing with EOF.\n", errout.str());
@ -7382,7 +7382,7 @@ private:
check("void f(){\n"
" char ch;\n"
" while ((ch = cin.get()) != EOF) {\n"
" std::cout << ch;\n"
" std::cout << ch;\n"
" }\n"
"}");
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing cin.get() return value in char variable and then comparing with EOF.\n", errout.str());
@ -7390,7 +7390,7 @@ private:
check("void f(){\n"
" int i;\n"
" while ((i = cin.get()) != EOF) {\n"
" std::cout << i;\n"
" std::cout << i;\n"
" }\n"
"}");
ASSERT_EQUALS("", errout.str());
@ -7398,7 +7398,7 @@ private:
check("void f(){\n"
" int i;\n"
" while ((i = std::cin.get()) != EOF) {\n"
" std::cout << i;\n"
" std::cout << i;\n"
" }\n"
"}");
ASSERT_EQUALS("", errout.str());
@ -7406,7 +7406,7 @@ private:
check("void f(){\n"
" char ch;\n"
" while ( EOF != (ch = std::cin.get()) ) {\n"
" std::cout << ch;\n"
" std::cout << ch;\n"
" }\n"
"}");
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing cin.get() return value in char variable and then comparing with EOF.\n", errout.str());
@ -7414,7 +7414,7 @@ private:
check("void f(){\n"
" char ch;\n"
" while ( EOF != (ch = cin.get()) ) {\n"
" std::cout << ch;\n"
" std::cout << ch;\n"
" }\n"
"}");
ASSERT_EQUALS("[test.cpp:3]: (warning) Storing cin.get() return value in char variable and then comparing with EOF.\n", errout.str());
@ -7422,7 +7422,7 @@ private:
check("void f(){\n"
" int i;\n"
" while ( EOF != (i = cin.get()) ) {\n"
" std::cout << i;\n"
" std::cout << i;\n"
" }\n"
"}");
ASSERT_EQUALS("", errout.str());
@ -7430,7 +7430,7 @@ private:
check("void f(){\n"
" int i;\n"
" while ( EOF != (i = std::cin.get()) ) {\n"
" std::cout << i;\n"
" std::cout << i;\n"
" }\n"
"}");
ASSERT_EQUALS("", errout.str());