#ticket 2429: added a test to the mathlib to ensure the used floating point number is recognized correctly
This commit is contained in:
parent
bfc95e01c1
commit
9b66f7a754
|
@ -262,6 +262,7 @@ private:
|
||||||
ASSERT_EQUALS(false , MathLib::isFloat("+1E+10000"));
|
ASSERT_EQUALS(false , MathLib::isFloat("+1E+10000"));
|
||||||
ASSERT_EQUALS(false , MathLib::isFloat("-1E+1"));
|
ASSERT_EQUALS(false , MathLib::isFloat("-1E+1"));
|
||||||
ASSERT_EQUALS(false , MathLib::isFloat("-1E+10000"));
|
ASSERT_EQUALS(false , MathLib::isFloat("-1E+10000"));
|
||||||
|
ASSERT_EQUALS(true , MathLib::isFloat(".1250E+04"));
|
||||||
ASSERT_EQUALS(true , MathLib::isFloat("-1E-1"));
|
ASSERT_EQUALS(true , MathLib::isFloat("-1E-1"));
|
||||||
ASSERT_EQUALS(true , MathLib::isFloat("-1E-10000"));
|
ASSERT_EQUALS(true , MathLib::isFloat("-1E-10000"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue