| 23 | } |
| 24 | |
| 25 | void checkDoubleInf(const char* input, bool negative) { |
| 26 | CAPTURE(input); |
| 27 | double x = parseNumber<double>(input); |
| 28 | if (negative) |
| 29 | REQUIRE(x < 0); |
| 30 | else |
| 31 | REQUIRE(x > 0); |
| 32 | REQUIRE(x == x); // not a NaN |
| 33 | REQUIRE(x * 2 == x); // a property of infinity |
| 34 | } |
| 35 | |
| 36 | TEST_CASE("parseNumber<double>()") { |
| 37 | SECTION("Short_NoExponent") { |