From cbc237c37b4a9a4396bd5305f423c53d111f4e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=E4ki?= Date: Fri, 28 Aug 2009 17:05:25 +0200 Subject: [PATCH] fixed failed assertions when running the testrunner --- test/testsimplifytokens.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 7ac14b58c..7d654093e 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -123,7 +123,7 @@ private: 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;")); { @@ -135,7 +135,7 @@ private: "}\n"; const char expected[] = "static void crash ( ) " - "{ foo ( ) ; }"; + "{ foo ( ) ; return ; foo ( ) ; }"; ASSERT_EQUALS(expected, tok(code)); } @@ -1260,12 +1260,12 @@ private: "if ( a ( ) ) " "{ " "if ( c ( ) ) " - "d ( ) ; " + "{ d ( ) ; } " "return ; " "} " "b ( ) ; " "if ( c ( ) ) " - "d ( ) ; " + "{ d ( ) ; } " "}"; ASSERT_EQUALS(expect, tok(code));