mirror of
https://github.com/nlohmann/json.git
synced 2026-07-08 19:45:09 +00:00
035c58fc5e
CHECK_THROWS_AS_WITH is not a doctest macro; the correct one used throughout this test suite is CHECK_THROWS_WITH_AS(expr, message, exception_type&), with the message before the type and the type as a reference. The previous commit didn't catch this because it only compiled the file standalone with default settings; this TEST_CASE only compiles under `#if !JSON_USE_IMPLICIT_CONVERSIONS`, which is why ci_test_noimplicitconversions was the job that failed. Verified by building and running the test in that exact configuration (JSON_USE_IMPLICIT_CONVERSIONS=0): 14/14 assertions pass. Signed-off-by: Niels Lohmann <mail@nlohmann.me>