astyle fix

This commit is contained in:
Reijo Tomperi 2009-08-26 00:41:03 +03:00
parent d67e3fcc49
commit e3c1e14bb0
1 changed files with 6 additions and 6 deletions

View File

@ -427,9 +427,9 @@ private:
ASSERT_EQUALS("; alloc ; dealloc ;", simplifycode("; alloc ; if(!var) { alloc ; } dealloc ;")); ASSERT_EQUALS("; alloc ; dealloc ;", simplifycode("; alloc ; if(!var) { alloc ; } dealloc ;"));
{ {
const char code[] = "; alloc ; if { dealloc ; return ; }"; const char code[] = "; alloc ; if { dealloc ; return ; }";
ASSERT_EQUALS(code, simplifycode(code)); ASSERT_EQUALS(code, simplifycode(code));
ASSERT_EQUALS("; alloc ;", simplifycode(code, true)); ASSERT_EQUALS("; alloc ;", simplifycode(code, true));
} }
// switch.. // switch..
@ -461,9 +461,9 @@ private:
TODO_ASSERT_EQUALS("; alloc ; return ;", simplifycode(";alloc;if{return;}return;")); TODO_ASSERT_EQUALS("; alloc ; return ;", simplifycode(";alloc;if{return;}return;"));
{ {
const char code[] = "; alloc ; if { dealloc ; return ; } dealloc ;"; const char code[] = "; alloc ; if { dealloc ; return ; } dealloc ;";
ASSERT_EQUALS(code, simplifycode(code)); ASSERT_EQUALS(code, simplifycode(code));
TODO_ASSERT_EQUALS("; alloc ; dealloc ;", simplifycode(code)); TODO_ASSERT_EQUALS("; alloc ; dealloc ;", simplifycode(code));
} }
} }