From a844fa017e17bc3349f354e1d0cdae90bb2b8fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 18 Feb 2009 20:04:34 +0000 Subject: [PATCH] fixed failed tests --- test/testsimplifytokens.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 0ee27918a..23ba20c61 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -139,7 +139,7 @@ private: { const char code1[] = " void f() { int a; bool use = false; if( use ) a=0; else if( bb ) a=1; int c=1; } "; - const char code2[] = " void f() { int a; bool use = false; if( bb ) a=1; int c=1; } "; + const char code2[] = " void f ( ) { int a ; bool use ; use = false ; { if ( bb ) { a = 1 ; } } int c ; c = 1 ; } "; ASSERT_EQUALS(tok(code2), tok(code1)); } @@ -157,13 +157,13 @@ private: { const char code1[] = " void f() { if( aa ) { a=0; } else if( true ) a=1; else { a=2; } } "; - const char code2[] = " void f() { if( aa ) { a=0; } else { a=1; } } "; + const char code2[] = " void f ( ) { if ( aa ) { a = 0 ; } else { { a = 1 ; } } } "; ASSERT_EQUALS(tok(code2), tok(code1)); } { const char code1[] = " void f() { if( aa ) { a=0; } else if( false ) a=1; else { a=2; } } "; - const char code2[] = " void f() { if( aa ) { a=0; } else { a=2; } } "; + const char code2[] = " void f ( ) { if ( aa ) { a = 0 ; } else { { a = 2 ; } } } "; ASSERT_EQUALS(tok(code2), tok(code1)); } }