diff --git a/test/src/unit-class_parser.cpp b/test/src/unit-class_parser.cpp index b6d6a615..775952b9 100644 --- a/test/src/unit-class_parser.cpp +++ b/test/src/unit-class_parser.cpp @@ -761,7 +761,7 @@ TEST_CASE("parser class") SECTION("from array") { - uint8_t v[] = {'t', 'r', 'u', 'e'}; + uint8_t v[] = {'t', 'r', 'u', 'e', '\0'}; CHECK(json::parser(std::begin(v), std::end(v)).parse() == json(true)); } diff --git a/test/src/unit-deserialization.cpp b/test/src/unit-deserialization.cpp index 0e5e2122..965d1d07 100644 --- a/test/src/unit-deserialization.cpp +++ b/test/src/unit-deserialization.cpp @@ -96,7 +96,7 @@ TEST_CASE("deserialization") SECTION("from array") { - uint8_t v[] = {'t', 'r', 'u', 'e'}; + uint8_t v[] = {'t', 'r', 'u', 'e', '\0'}; CHECK(json::parse(std::begin(v), std::end(v)) == json(true)); }