mirror of
https://github.com/nlohmann/json.git
synced 2024-08-23 21:42:29 +02:00
fixed unit tests
This commit is contained in:
parent
5e67f7af01
commit
a78eaa27b5
|
@ -761,7 +761,7 @@ TEST_CASE("parser class")
|
||||||
|
|
||||||
SECTION("from array")
|
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));
|
CHECK(json::parser(std::begin(v), std::end(v)).parse() == json(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ TEST_CASE("deserialization")
|
||||||
|
|
||||||
SECTION("from array")
|
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));
|
CHECK(json::parse(std::begin(v), std::end(v)) == json(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue