From 4d28694756c2d67457379ca5bbe958b438c70b6a Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 11 Jul 2020 19:28:58 +0200 Subject: [PATCH] :recycle: replace further alternative operators --- test/src/unit-assert_macro.cpp | 2 +- test/src/unit-class_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-assert_macro.cpp b/test/src/unit-assert_macro.cpp index 06aa0770..9996394f 100644 --- a/test/src/unit-assert_macro.cpp +++ b/test/src/unit-assert_macro.cpp @@ -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)") diff --git a/test/src/unit-class_parser.cpp b/test/src/unit-class_parser.cpp index d5382e33..a17d342c 100644 --- a/test/src/unit-class_parser.cpp +++ b/test/src/unit-class_parser.cpp @@ -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));