improve test coverage

pull/2125/head
Niels Lohmann 2020-05-19 12:40:32 +02:00
parent b7ff40029a
commit 79347b484b
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
1 changed files with 3 additions and 0 deletions

View File

@ -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")