diff --git a/test/src/unit-class_parser.cpp b/test/src/unit-class_parser.cpp index 35a76c10..c7429dd4 100644 --- a/test/src/unit-class_parser.cpp +++ b/test/src/unit-class_parser.cpp @@ -749,7 +749,7 @@ TEST_CASE("parser class") { SECTION("from std::vector") { - std::vector v = {'t', 'r', 'u', 'e'}; + std::vector v = {'t', 'r', 'u', 'e', '\0'}; CHECK (json::parser(std::begin(v), std::end(v)).parse() == json(true)); }