improved test coverage

This commit is contained in:
Niels Lohmann 2016-12-30 13:04:33 +01:00
parent f0edab2363
commit d7029c37aa

View file

@ -28,6 +28,7 @@ SOFTWARE.
#include "catch.hpp"
#define private public
#include "json.hpp"
using nlohmann::json;
@ -1262,6 +1263,12 @@ TEST_CASE("CBOR regressions")
}
}
}
SECTION("improve code coverage")
{
// exotic edge case
CHECK_THROWS_AS(json::check_length(0xffffffffffffffff, 0xfffffffffffffff0, 0xff), std::out_of_range);
}
}
TEST_CASE("CBOR roundtrips", "[hide]")