diff --git a/test/src/unit-udt.cpp b/test/src/unit-udt.cpp index f270fdc4..a6c538eb 100644 --- a/test/src/unit-udt.cpp +++ b/test/src/unit-udt.cpp @@ -730,6 +730,6 @@ TEST_CASE("Issue #924") // Prevent get<std::vector<Evil>>() to throw auto j = json::array(); - (void) j.get<Evil>(); - (void) j.get<std::vector<Evil>>(); + CHECK_NOTHROW(j.get<Evil>()); + CHECK_NOTHROW(j.get<std::vector<Evil>>()); }