Fixed unit tests

This commit is contained in:
PKEuS 2012-12-26 12:50:59 +01:00
parent b3301a9ef9
commit 735069e3a7
2 changed files with 4 additions and 4 deletions

View File

@ -2641,7 +2641,7 @@ private:
" char inbuf[1000];\n"
" char *f[10];\n"
" split(inbuf, f, 10, \"\t\t\");\n"
"}n");
"}");
ASSERT_EQUALS("", errout.str());
}

View File

@ -498,7 +498,7 @@ private:
void return4() { // ticket #3862
// avoid false positives
check("void f(char *p, int x) {\n"
" if (x==12) {n"
" if (x==12) {\n"
" free(p);\n"
" throw 1;\n"
" }\n"
@ -507,7 +507,7 @@ private:
ASSERT_EQUALS("", errout.str());
check("void f(char *p, int x) {\n"
" if (x==12) {n"
" if (x==12) {\n"
" delete p;\n"
" throw 1;\n"
" }\n"
@ -516,7 +516,7 @@ private:
ASSERT_EQUALS("", errout.str());
check("void f(char *p, int x) {\n"
" if (x==12) {n"
" if (x==12) {\n"
" delete [] p;\n"
" throw 1;\n"
" }\n"