Skip to content

Commit 1df71f1

Browse files
committed
add failing test
1 parent 269867f commit 1df71f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/rcppfastfloat_test.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ bool eddelbuettel() {
4141
"-.1",
4242
"+.1",
4343
"1e+1",
44-
"+1e1"};
44+
"+1e1",
45+
"-+0",
46+
"-+inf",
47+
"-+nan"};
4548
std::vector<std::pair<bool, double>> expected_results = {
4649
{true, std::numeric_limits<double>::infinity()},
4750
{true, 3.16227766016838},
@@ -75,6 +78,9 @@ bool eddelbuettel() {
7578
{true, 0.1},
7679
{true, 10},
7780
{true, 10},
81+
{false, -1},
82+
{false, -1},
83+
{false, -1},
7884
};
7985
for (size_t i = 0; i < inputs.size(); i++) {
8086
const std::string &input = inputs[i];

0 commit comments

Comments
 (0)