Tokenizer: I dont think its safe to calculate floating point equality comparisons, changing TODO assertion to normal assertion.
This commit is contained in:
parent
aa937e426d
commit
be6e0cbf85
|
@ -2634,10 +2634,8 @@ 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 ( ) ; } }",
|
||||
tok(code));
|
||||
ASSERT_EQUALS("void f ( ) { if ( -1e-2 == -0.01 ) { g ( ) ; } else { h ( ) ; } }",
|
||||
tok(code));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue