Added more tests to test case TestSimplifyTokens::ifassign1

This commit is contained in:
Reijo Tomperi 2009-07-30 01:39:28 +03:00
parent b56fdb83da
commit 2fa3b4ce60
1 changed files with 1 additions and 0 deletions

View File

@ -968,6 +968,7 @@ private:
ASSERT_EQUALS("; a = b ; if ( a ) ;", simplifyIfAssign(";if(a=b);"));
ASSERT_EQUALS("; a = b ( ) ; if ( ( a ) ) ;", simplifyIfAssign(";if((a=b()));"));
ASSERT_EQUALS("; a = b ( ) ; if ( ! ( a ) ) ;", simplifyIfAssign(";if(!(a=b()));"));
TODO_ASSERT_EQUALS("; a . x = b ( ) ; if ( ! ( a . x ) ) ;", simplifyIfAssign(";if(!(a->x=b()));"));
}