diff --git a/test/src/unit-regression.cpp b/test/src/unit-regression.cpp index a119ed72..79edab3f 100644 --- a/test/src/unit-regression.cpp +++ b/test/src/unit-regression.cpp @@ -785,7 +785,7 @@ TEST_CASE("regression tests") { json j = json::parse("166020696663385964490"); CHECK(j.is_number_float()); - CHECK(j.dump() == "1.66020696663386e+20"); + CHECK(j.get() == static_cast(166020696663385964490.0)); } SECTION("issue #405 - Heap-buffer-overflow (OSS-Fuzz issue 342)")