💚 fix build

This commit is contained in:
Niels Lohmann 2020-05-19 13:45:52 +02:00
parent 21b1680ea1
commit 4d39644bd0
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
5 changed files with 9 additions and 6 deletions

View file

@ -765,9 +765,12 @@ TEST_CASE("different basic_json types conversions")
SECTION("binary")
{
json j = json::binary({1, 2, 3});
json j = json::binary({1, 2, 3}, 42);
custom_json cj = j;
CHECK(cj.get_binary() == j.get_binary());
CHECK(cj.get_binary().subtype() == 42);
std::vector<std::uint8_t> cv = cj.get_binary();
std::vector<std::uint8_t> v = j.get_binary();
CHECK(cv == v);
}
SECTION("object")