👌 apply review comment
This commit is contained in:
parent
432d78195d
commit
0f9a2f264e
@ -335,7 +335,7 @@ TEST_CASE("deserialization")
|
|||||||
|
|
||||||
SECTION("FILE*")
|
SECTION("FILE*")
|
||||||
{
|
{
|
||||||
std::FILE* f = std::fopen("nonexisting_file", "r"); // NOLINT(cppcoreguidelines-owning-memory)
|
std::FILE* f = nullptr;
|
||||||
json _;
|
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::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&);
|
CHECK_THROWS_WITH_AS(_ = json::accept(f), "[json.exception.parse_error.116] parse error: input file is invalid", json::parse_error&);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user