diff --git a/tests/rcppfastfloat_test.cpp b/tests/rcppfastfloat_test.cpp index 61601cc..457903d 100644 --- a/tests/rcppfastfloat_test.cpp +++ b/tests/rcppfastfloat_test.cpp @@ -36,7 +36,10 @@ bool eddelbuettel() { "-Inf", "+2.2", "1d+4", - "1d-1"}; + "1d-1", + "0." + "-.1", + "+.1"}; std::vector> expected_results = { {true, std::numeric_limits::infinity()}, {true, 3.16227766016838}, @@ -64,7 +67,11 @@ bool eddelbuettel() { {true, -std::numeric_limits::infinity()}, {true, 2.2}, {false, -1}, - {false, -1}}; + {false, -1}, + {true, 0}, + {true, -0.1}, + {true, 0.1}, + }; for (size_t i = 0; i < inputs.size(); i++) { std::string &input = inputs[i]; std::pair expected = expected_results[i];