1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-22 15:21:52 +03:00

improved test coverage

This commit is contained in:
Niels Lohmann
2017-11-25 19:41:02 +01:00
parent 4c4f60f438
commit de75cf89f7
3 changed files with 38 additions and 3 deletions

View File

@ -1305,4 +1305,12 @@ TEST_CASE("regression tests")
j = {{"nocopy", n}};
CHECK(j["nocopy"]["val"] == 0);
}
SECTION("issue #843 - converting to array not working")
{
json j;
std::array<int, 4> ar = {1, 1, 1, 1};
j = ar;
ar = j;
}
}