From 79347b484b9df853ba13b34e7f8b438bee9c2f46 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 19 May 2020 12:40:32 +0200 Subject: [PATCH] :white_check_mark: improve test coverage --- test/src/unit-inspection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/src/unit-inspection.cpp b/test/src/unit-inspection.cpp index c464b6989..d14b89afd 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")