We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a390f6 commit 2eb7b2eCopy full SHA for 2eb7b2e
tests/rcppfastfloat_test.cpp
@@ -34,7 +34,9 @@ bool eddelbuettel() {
34
"NaN",
35
"",
36
"-Inf",
37
- "+2.2"};
+ "+2.2",
38
+ "1d+4",
39
+ "1d-1"};
40
std::vector<std::pair<bool, double>> expected_results = {
41
{true, std::numeric_limits<double>::infinity()},
42
{true, 3.16227766016838},
@@ -60,7 +62,9 @@ bool eddelbuettel() {
60
62
{true, std::numeric_limits<double>::quiet_NaN()},
61
63
{false, -1},
64
{true, -std::numeric_limits<double>::infinity()},
- {true, 2.2}};
65
+ {true, 2.2},
66
+ {false, -1},
67
+ {false, -1}};
68
for (size_t i = 0; i < inputs.size(); i++) {
69
std::string &input = inputs[i];
70
std::pair<bool, double> expected = expected_results[i];
0 commit comments