Tokenizer: I dont think its safe to calculate floating point equality comparisons, changing TODO assertion to normal assertion.

This commit is contained in:
Daniel Marjamäki 2017-05-28 12:34:29 +02:00
parent aa937e426d
commit be6e0cbf85
1 changed files with 2 additions and 4 deletions

View File

@ -2634,9 +2634,7 @@ private:
"else\n"
" h();\n"
"}";
// condition cannot be safely be calculated to be true due to numerics
TODO_ASSERT_EQUALS("void f ( ) { g ( ) ; }",
"void f ( ) { if ( -1e-2 == -0.01 ) { g ( ) ; } else { h ( ) ; } }",
ASSERT_EQUALS("void f ( ) { if ( -1e-2 == -0.01 ) { g ( ) ; } else { h ( ) ; } }",
tok(code));
}
}