From be6e0cbf85fe23a74e853d49375be980e0052ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 28 May 2017 12:34:29 +0200 Subject: [PATCH] Tokenizer: I dont think its safe to calculate floating point equality comparisons, changing TODO assertion to normal assertion. --- test/testsimplifytokens.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 7cb1f0f86..b9f39e9aa 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -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)); } }