| 555 | } |
| 556 | |
| 557 | void |
| 558 | testSpecialNumbers() |
| 559 | { |
| 560 | parse_options with_special_numbers; |
| 561 | with_special_numbers.allow_infinity_and_nan = true; |
| 562 | |
| 563 | grind_double( |
| 564 | "Infinity", |
| 565 | std::numeric_limits<double>::infinity(), |
| 566 | with_special_numbers); |
| 567 | |
| 568 | grind_double( |
| 569 | "-Infinity", |
| 570 | -std::numeric_limits<double>::infinity(), |
| 571 | with_special_numbers); |
| 572 | |
| 573 | grind_double( |
| 574 | "NaN", |
| 575 | std::numeric_limits<double>::quiet_NaN(), |
| 576 | with_special_numbers); |
| 577 | } |
| 578 | |
| 579 | void |
| 580 | run() |
nothing calls this directly
no outgoing calls
no test coverage detected