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

Method testNumberRoundTrips

test/serializer.cpp:678–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676 }
677
678 void
679 testNumberRoundTrips()
680 {
681 // no decimal or exponent parsed as integer
682 BOOST_TEST(parse("-0").as_int64() == 0);
683 BOOST_TEST(serialize(parse("-0")) == "0");
684 BOOST_TEST(parse("-0.0").as_double() == -0);
685 BOOST_TEST(serialize(parse("0.0")) == "0E0");
686 BOOST_TEST(parse("0.0").as_double() == 0);
687 BOOST_TEST(serialize(parse("-0.0")) == "-0E0");
688 }
689
690 void
691 testStack()

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.85

Tested by

no test coverage detected