mirror of
https://github.com/nlohmann/json
synced 2025-01-15 11:40:05 +00:00
♻️ replace further alternative operators
This commit is contained in:
parent
8d295235a5
commit
4d28694756
@ -44,7 +44,7 @@ static int assert_counter;
|
||||
using nlohmann::json;
|
||||
|
||||
// the test assumes exceptions to work
|
||||
#if not defined(JSON_NOEXCEPTION)
|
||||
#if !defined(JSON_NOEXCEPTION)
|
||||
TEST_CASE("JSON_ASSERT(x)")
|
||||
{
|
||||
SECTION("basic_json(first, second)")
|
||||
|
@ -314,7 +314,7 @@ void comments_helper(const std::string& s)
|
||||
{
|
||||
CAPTURE(json_with_comment)
|
||||
CHECK_THROWS_AS(_ = json::parse(json_with_comment), json::parse_error);
|
||||
CHECK(not json::accept(json_with_comment));
|
||||
CHECK(!json::accept(json_with_comment));
|
||||
|
||||
CHECK_NOTHROW(_ = json::parse(json_with_comment, nullptr, true, true));
|
||||
CHECK(json::accept(json_with_comment, true));
|
||||
|
Loading…
Reference in New Issue
Block a user