Fix json rendering of large osm ids

This commit is contained in:
Iman
2025-01-12 19:48:44 +03:30
parent 3614af7f64
commit ef96e499f8
3 changed files with 12 additions and 3 deletions
+7 -2
View File
@@ -87,8 +87,13 @@ BOOST_AUTO_TEST_CASE(test_json_issue_6531)
BOOST_CHECK_EQUAL(output, "0.1234567892");
output.clear();
renderer(123456789123456789.);
BOOST_CHECK_EQUAL(output, "1.234567891e+17");
renderer(12345678912345678.);
BOOST_CHECK_EQUAL(output, "12345678912345678");
// handle large osm ids
output.clear();
renderer(1000396615812);
BOOST_CHECK_EQUAL(output, "1000396615812");
}
BOOST_AUTO_TEST_SUITE_END()