✅ improved test coverage

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

No files matched your search

+8
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;
}
}