diff --git a/tests/src/unit-large_json.cpp b/tests/src/unit-large_json.cpp index 0f71bcd2e..3734966d5 100644 --- a/tests/src/unit-large_json.cpp +++ b/tests/src/unit-large_json.cpp @@ -188,7 +188,7 @@ TEST_CASE("tests on deeply nested JSONs") SECTION("comparing objects") { std::string text; - text.reserve(6 * depth + 1); + text.reserve((6 * depth) + 1); for (std::size_t i = 0; i < depth; ++i) { text += "{\"a\":";