diff --git a/test/src/unit-inspection.cpp b/test/src/unit-inspection.cpp index c464b698..d14b89af 100644 --- a/test/src/unit-inspection.cpp +++ b/test/src/unit-inspection.cpp @@ -261,6 +261,9 @@ TEST_CASE("object inspection") // important test, because it yields a resize of the indent_string // inside the dump() function CHECK(j.dump(1024).size() == 15472); + + const auto binary = json::binary_array({1, 2, 3}, 128); + CHECK(binary.dump(1024).size() == 2086); } SECTION("dump and floating-point numbers")