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

Method testSpecialNumbers

test/double.cpp:557–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected