astyle fix

This commit is contained in:
Reijo Tomperi 2009-05-01 12:29:49 +03:00
parent 34540fee04
commit 7002af6c9a
1 changed files with 16 additions and 16 deletions

View File

@ -2090,24 +2090,24 @@ private:
void if_with_and() void if_with_and()
{ {
check( "void f()\n" check("void f()\n"
"{\n" "{\n"
" char *a = new char[10];\n" " char *a = new char[10];\n"
" if (!a && b() )\n" " if (!a && b() )\n"
" return;\n" " return;\n"
"\n" "\n"
" delete [] a;\n" " delete [] a;\n"
"}\n", true); "}\n", true);
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
check( "void f()\n" check("void f()\n"
"{\n" "{\n"
" char *a = new char[10];\n" " char *a = new char[10];\n"
" if (b() && !a )\n" " if (b() && !a )\n"
" return;\n" " return;\n"
"\n" "\n"
" delete [] a;\n" " delete [] a;\n"
"}\n", true); "}\n", true);
TODO_ASSERT_EQUALS("", errout.str()); TODO_ASSERT_EQUALS("", errout.str());
} }
}; };