remove roundoff test, add test for exponential representations

-- testing that a number with >15 significant digits rounded off to 15 failed on all tested platforms
This commit is contained in:
Crzyrndm 2018-08-25 14:06:20 +12:00
parent 1003ba507d
commit e183e37ae6

View File

@ -49,9 +49,8 @@ public:
xlnt_assert(xlnt::detail::serialize_number_to_string(1.23456) == "1.23456");
xlnt_assert(xlnt::detail::serialize_number_to_string(1.23456789012345) == "1.23456789012345");
xlnt_assert(xlnt::detail::serialize_number_to_string(123456.789012345) == "123456.789012345");
xlnt_assert(xlnt::detail::serialize_number_to_string(1234567890123.45) == "1234567890123.45");
// extra precision gets trimmed
xlnt_assert(xlnt::detail::serialize_number_to_string(1.234567890123456) == "1.23456789012345");
xlnt_assert(xlnt::detail::serialize_number_to_string(1.23456789012345e+67) == "1.23456789012345e+67");
xlnt_assert(xlnt::detail::serialize_number_to_string(1.23456789012345e-67) == "1.23456789012345e-67");
}
void test_float_equals_zero()