correct std::array tests to account for corrected behaviors
This commit is contained in:
parent
9dc7b666e7
commit
848cf728c0
@ -1620,7 +1620,7 @@ TEST_CASE("parser class")
|
|||||||
|
|
||||||
SECTION("from std::array")
|
SECTION("from std::array")
|
||||||
{
|
{
|
||||||
std::array<uint8_t, 5> v { {'t', 'r', 'u', 'e'} };
|
std::array<uint8_t, 4> v { {'t', 'r', 'u', 'e'} };
|
||||||
json j;
|
json j;
|
||||||
json::parser(nlohmann::detail::input_adapter(std::begin(v), std::end(v))).parse(true, j);
|
json::parser(nlohmann::detail::input_adapter(std::begin(v), std::end(v))).parse(true, j);
|
||||||
CHECK(j == json(true));
|
CHECK(j == json(true));
|
||||||
|
|||||||
@ -358,7 +358,7 @@ TEST_CASE("deserialization")
|
|||||||
|
|
||||||
SECTION("from std::array")
|
SECTION("from std::array")
|
||||||
{
|
{
|
||||||
std::array<uint8_t, 5> v { {'t', 'r', 'u', 'e'} };
|
std::array<uint8_t, 4> v { {'t', 'r', 'u', 'e'} };
|
||||||
CHECK(json::parse(v) == json(true));
|
CHECK(json::parse(v) == json(true));
|
||||||
CHECK(json::accept(v));
|
CHECK(json::accept(v));
|
||||||
|
|
||||||
@ -453,7 +453,7 @@ TEST_CASE("deserialization")
|
|||||||
|
|
||||||
SECTION("from std::array")
|
SECTION("from std::array")
|
||||||
{
|
{
|
||||||
std::array<uint8_t, 5> v { {'t', 'r', 'u', 'e'} };
|
std::array<uint8_t, 4> v { {'t', 'r', 'u', 'e'} };
|
||||||
CHECK(json::parse(std::begin(v), std::end(v)) == json(true));
|
CHECK(json::parse(std::begin(v), std::end(v)) == json(true));
|
||||||
CHECK(json::accept(std::begin(v), std::end(v)));
|
CHECK(json::accept(std::begin(v), std::end(v)));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user