parent
4e2fb1a533
commit
2f94c30bad
2 changed files with 8 additions and 0 deletions
test/src
|
@ -533,4 +533,11 @@ TEST_CASE("regression tests")
|
|||
json j3 = json::parse("-9223372036854775809");
|
||||
CHECK(j3.is_number_float());
|
||||
}
|
||||
|
||||
SECTION("issue #380 - bug in overflow detection when parsing integers")
|
||||
{
|
||||
json j = json::parse("166020696663385964490");
|
||||
CHECK(j.is_number_float());
|
||||
CHECK(j.dump() == "1.66020696663386e+20");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue