fixed failed assertions when running the testrunner
This commit is contained in:
parent
4f6b79b761
commit
cbc237c37b
|
@ -123,7 +123,7 @@ private:
|
||||||
|
|
||||||
void cast()
|
void cast()
|
||||||
{
|
{
|
||||||
ASSERT_EQUALS("if ( p == 0 )", tok("if (p == (char *)0)"));
|
ASSERT_EQUALS("if ( ! p )", tok("if (p == (char *)0)"));
|
||||||
ASSERT_EQUALS("return str ;", tok("return (char *)str;"));
|
ASSERT_EQUALS("return str ;", tok("return (char *)str;"));
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -135,7 +135,7 @@ private:
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
const char expected[] = "static void crash ( ) "
|
const char expected[] = "static void crash ( ) "
|
||||||
"{ foo ( ) ; }";
|
"{ foo ( ) ; return ; foo ( ) ; }";
|
||||||
|
|
||||||
ASSERT_EQUALS(expected, tok(code));
|
ASSERT_EQUALS(expected, tok(code));
|
||||||
}
|
}
|
||||||
|
@ -1260,12 +1260,12 @@ private:
|
||||||
"if ( a ( ) ) "
|
"if ( a ( ) ) "
|
||||||
"{ "
|
"{ "
|
||||||
"if ( c ( ) ) "
|
"if ( c ( ) ) "
|
||||||
"d ( ) ; "
|
"{ d ( ) ; } "
|
||||||
"return ; "
|
"return ; "
|
||||||
"} "
|
"} "
|
||||||
"b ( ) ; "
|
"b ( ) ; "
|
||||||
"if ( c ( ) ) "
|
"if ( c ( ) ) "
|
||||||
"d ( ) ; "
|
"{ d ( ) ; } "
|
||||||
"}";
|
"}";
|
||||||
|
|
||||||
ASSERT_EQUALS(expect, tok(code));
|
ASSERT_EQUALS(expect, tok(code));
|
||||||
|
|
Loading…
Reference in New Issue