👌 apply review comment

This commit is contained in:
Niels Lohmann 2022-07-20 17:07:35 +02:00
parent 432d78195d
commit 0f9a2f264e
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -335,7 +335,7 @@ TEST_CASE("deserialization")
SECTION("FILE*")
{
std::FILE* f = std::fopen("nonexisting_file", "r"); // NOLINT(cppcoreguidelines-owning-memory)
std::FILE* f = nullptr;
json _;
CHECK_THROWS_WITH_AS(_ = json::parse(f), "[json.exception.parse_error.116] parse error: input file is invalid", json::parse_error&);
CHECK_THROWS_WITH_AS(_ = json::accept(f), "[json.exception.parse_error.116] parse error: input file is invalid", json::parse_error&);