MCPcopy Create free account
hub / github.com/boostorg/json / testSpecialNumbers

Method testSpecialNumbers

test/stream_parser.cpp:1270–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected