From a78eaa27b5bfdc000ef97391f6664cb317e5cbc9 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 17 Aug 2016 21:31:59 +0200 Subject: [PATCH] fixed unit tests --- test/src/unit-class_parser.cpp | 2 +- test/src/unit-deserialization.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); }