diff --git a/test/src/unit-conversions.cpp b/test/src/unit-conversions.cpp index c71e230d9..202619c4f 100644 --- a/test/src/unit-conversions.cpp +++ b/test/src/unit-conversions.cpp @@ -465,6 +465,7 @@ TEST_CASE("value conversion") #if defined(JSON_HAS_CPP_17) SECTION("std::string_view") { + static_assert(false); std::string_view s = j.get(); CHECK(json(s) == j); } @@ -514,6 +515,7 @@ TEST_CASE("value conversion") #if defined(JSON_HAS_CPP_17) SECTION("exception in case of a non-string type using string_view") { + static_assert(false); CHECK_THROWS_AS(json(json::value_t::null).get(), json::type_error&); CHECK_THROWS_AS(json(json::value_t::object).get(), json::type_error&); CHECK_THROWS_AS(json(json::value_t::array).get(), json::type_error&); @@ -561,6 +563,7 @@ TEST_CASE("value conversion") #if defined(JSON_HAS_CPP_17) SECTION("std::string_view") { + static_assert(false); std::string s = "previous value"; std::string_view sv = s; j.get_to(sv); @@ -617,6 +620,7 @@ TEST_CASE("value conversion") #if defined(JSON_HAS_CPP_17) SECTION("std::string_view") { + static_assert(false); std::string_view s = j.get(); CHECK(json(s) == j); } diff --git a/test/src/unit-items.cpp b/test/src/unit-items.cpp index 10621ce7e..9094c1a39 100644 --- a/test/src/unit-items.cpp +++ b/test/src/unit-items.cpp @@ -886,6 +886,7 @@ TEST_CASE("items()") #ifdef JSON_HAS_CPP_17 SECTION("structured bindings") { + static_assert(false); json j = { {"A", 1}, {"B", 2} }; std::map m; diff --git a/test/src/unit-regression2.cpp b/test/src/unit-regression2.cpp index ca50cdd41..18a78b092 100644 --- a/test/src/unit-regression2.cpp +++ b/test/src/unit-regression2.cpp @@ -250,6 +250,7 @@ TEST_CASE("regression tests 2") #ifdef JSON_HAS_CPP_17 SECTION("issue #1292 - Serializing std::variant causes stack overflow") { + static_assert(false); static_assert( !std::is_constructible>::value, ""); }