| 1268 | } |
| 1269 | |
| 1270 | void |
| 1271 | testSpecialNumbers() |
| 1272 | { |
| 1273 | parse_options with_special_numbers; |
| 1274 | with_special_numbers.allow_infinity_and_nan = true; |
| 1275 | |
| 1276 | grind_double( |
| 1277 | "Infinity", |
| 1278 | std::numeric_limits<double>::infinity(), |
| 1279 | with_special_numbers); |
| 1280 | |
| 1281 | grind_double( |
| 1282 | "-Infinity", |
| 1283 | -std::numeric_limits<double>::infinity(), |
| 1284 | with_special_numbers); |
| 1285 | grind_double( |
| 1286 | "-Infinity ", // long enough for fast path |
| 1287 | -std::numeric_limits<double>::infinity(), |
| 1288 | with_special_numbers); |
| 1289 | |
| 1290 | |
| 1291 | grind_double( |
| 1292 | "NaN", |
| 1293 | std::numeric_limits<double>::quiet_NaN(), |
| 1294 | with_special_numbers); |
| 1295 | } |
| 1296 | |
| 1297 | //------------------------------------------------------ |
| 1298 |
nothing calls this directly
no outgoing calls
no test coverage detected