Skip to content

Commit 2eb7b2e

Browse files
committed
Adding a couple of tests.
1 parent 6a390f6 commit 2eb7b2e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/rcppfastfloat_test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ bool eddelbuettel() {
3434
"NaN",
3535
"",
3636
"-Inf",
37-
"+2.2"};
37+
"+2.2",
38+
"1d+4",
39+
"1d-1"};
3840
std::vector<std::pair<bool, double>> expected_results = {
3941
{true, std::numeric_limits<double>::infinity()},
4042
{true, 3.16227766016838},
@@ -60,7 +62,9 @@ bool eddelbuettel() {
6062
{true, std::numeric_limits<double>::quiet_NaN()},
6163
{false, -1},
6264
{true, -std::numeric_limits<double>::infinity()},
63-
{true, 2.2}};
65+
{true, 2.2},
66+
{false, -1},
67+
{false, -1}};
6468
for (size_t i = 0; i < inputs.size(); i++) {
6569
std::string &input = inputs[i];
6670
std::pair<bool, double> expected = expected_results[i];

0 commit comments

Comments
 (0)