improved test coverage

This commit is contained in:
Niels Lohmann 2017-11-25 19:41:02 +01:00
parent 4c4f60f438
commit de75cf89f7
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
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;
}
}