mirror of
https://github.com/nlohmann/json.git
synced 2025-07-31 10:24:23 +03:00
missing CHECK_NOTHROW in unit-udt
This commit is contained in:
@ -730,6 +730,6 @@ TEST_CASE("Issue #924")
|
|||||||
// Prevent get<std::vector<Evil>>() to throw
|
// Prevent get<std::vector<Evil>>() to throw
|
||||||
auto j = json::array();
|
auto j = json::array();
|
||||||
|
|
||||||
(void) j.get<Evil>();
|
CHECK_NOTHROW(j.get<Evil>());
|
||||||
(void) j.get<std::vector<Evil>>();
|
CHECK_NOTHROW(j.get<std::vector<Evil>>());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user