Skip to content

Commit

Permalink
♻️ replace further alternative operators
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jul 11, 2020
1 parent 8d29523 commit 4d28694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/src/unit-assert_macro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
2 changes: 1 addition & 1 deletion test/src/unit-class_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4d28694

Please sign in to comment.