Commit 2f94c30b authored by Niels Lohmann's avatar Niels Lohmann
Browse files

added a regression test for #380 / #390

parent 4e2fb1a5
......@@ -583,6 +583,7 @@ I deeply appreciate the help of the following people.
- [TurpentineDistillery]( pointed to [`std::locale::classic()`]( to avoid too much locale joggling, found some nice performance improvements in the parser and improved the benchmarking code.
- [cgzones]( had an idea how to fix the Coverity scan.
- [Jared Grubb]( silenced a nasty documentation warning.
- [Yixin Zhang]( fixed an integer overflow check.
Thanks a lot for helping out!
......@@ -533,4 +533,11 @@ TEST_CASE("regression tests")
json j3 = json::parse("-9223372036854775809");
SECTION("issue #380 - bug in overflow detection when parsing integers")
json j = json::parse("166020696663385964490");
CHECK(j.dump() == "1.66020696663386e+20");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment