| 9 | using namespace osrm::util::json; |
| 10 | |
| 11 | BOOST_AUTO_TEST_CASE(number_truncating) |
| 12 | { |
| 13 | std::string str; |
| 14 | Renderer<std::string> renderer(str); |
| 15 | |
| 16 | // this number would have more than 10 decimals if not truncated |
| 17 | renderer(Number{42.9995999594999399299}); |
| 18 | BOOST_CHECK_EQUAL(str, "42.99959996"); |
| 19 | } |
| 20 | |
| 21 | BOOST_AUTO_TEST_CASE(integer) |
| 22 | { |