diff --git a/test/src/unit-conversions.cpp b/test/src/unit-conversions.cpp index c7dba44f3..b1c0e3921 100644 --- a/test/src/unit-conversions.cpp +++ b/test/src/unit-conversions.cpp @@ -1486,6 +1486,8 @@ TEST_CASE("value conversion") json j3 = {1.2, 2.3, 3.4, 4.5}; json j4 = {true, false, true}; json j5 = {"one", "two", "three"}; + json j6 = j3; + j6[1] = nullptr; SECTION("std::list") { @@ -1494,6 +1496,7 @@ TEST_CASE("value conversion") j3.get>(); j4.get>(); j5.get>(); + j6.get>(); } SECTION("std::forward_list") @@ -1503,6 +1506,7 @@ TEST_CASE("value conversion") j3.get>(); j4.get>(); j5.get>(); + j6.get>(); } SECTION("std::array") @@ -1512,6 +1516,8 @@ TEST_CASE("value conversion") j3.get>(); j4.get>(); j5.get>(); + j6.get>(); + SECTION("std::array is larger than JSON") { @@ -1537,6 +1543,7 @@ TEST_CASE("value conversion") j3.get>(); j4.get>(); j5.get>(); + j6.get>(); } SECTION("std::vector") @@ -1546,6 +1553,7 @@ TEST_CASE("value conversion") j3.get>(); j4.get>(); j5.get>(); + j6.get>(); } SECTION("std::deque") @@ -1555,6 +1563,7 @@ TEST_CASE("value conversion") j2.get>(); j4.get>(); j5.get>(); + j6.get>(); } SECTION("std::set") @@ -1564,6 +1573,7 @@ TEST_CASE("value conversion") j3.get>(); j4.get>(); j5.get>(); + j6.get>(); } SECTION("std::unordered_set") @@ -1573,6 +1583,7 @@ TEST_CASE("value conversion") j3.get>(); j4.get>(); j5.get>(); + j6.get>(); } SECTION("std::map (array of pairs)")