From 1df71f1e9d0b225e71bdb93d07ee72218175e876 Mon Sep 17 00:00:00 2001 From: Anders Dalvander Date: Sun, 17 Nov 2024 16:20:44 +0100 Subject: [PATCH] add failing test --- tests/rcppfastfloat_test.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/rcppfastfloat_test.cpp b/tests/rcppfastfloat_test.cpp index 4017e10..fb6cfb7 100644 --- a/tests/rcppfastfloat_test.cpp +++ b/tests/rcppfastfloat_test.cpp @@ -41,7 +41,10 @@ bool eddelbuettel() { "-.1", "+.1", "1e+1", - "+1e1"}; + "+1e1", + "-+0", + "-+inf", + "-+nan"}; std::vector> expected_results = { {true, std::numeric_limits::infinity()}, {true, 3.16227766016838}, @@ -75,6 +78,9 @@ bool eddelbuettel() { {true, 0.1}, {true, 10}, {true, 10}, + {false, -1}, + {false, -1}, + {false, -1}, }; for (size_t i = 0; i < inputs.size(); i++) { const std::string &input = inputs[i];