| 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() |
nothing calls this directly
no test coverage detected