From ed6f31f4c9939d6cc8d4d317d561a94545750b0b Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 5 Aug 2024 12:40:04 +0200 Subject: Replace classic C boolean operators with keywords ! => not; && => and, || => or --- test/buildtool/multithreading/async_map_consumer.test.cpp | 2 +- test/buildtool/multithreading/task.test.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test/buildtool/multithreading') diff --git a/test/buildtool/multithreading/async_map_consumer.test.cpp b/test/buildtool/multithreading/async_map_consumer.test.cpp index a2de18b7..f65c7851 100644 --- a/test/buildtool/multithreading/async_map_consumer.test.cpp +++ b/test/buildtool/multithreading/async_map_consumer.test.cpp @@ -237,7 +237,7 @@ TEST_CASE("ErrorPropagation", "[async_map_consumer]") { [&fail_cont_counter]() { fail_cont_counter++; }); } CHECK(execution_failed); - CHECK(!consumer_called); + CHECK(not consumer_called); CHECK(fail_cont_counter == 1); } diff --git a/test/buildtool/multithreading/task.test.cpp b/test/buildtool/multithreading/task.test.cpp index fab83547..772b3e83 100644 --- a/test/buildtool/multithreading/task.test.cpp +++ b/test/buildtool/multithreading/task.test.cpp @@ -47,18 +47,18 @@ struct RefCaptureCallable { TEST_CASE("Default constructed task is empty", "[task]") { Task t; - CHECK(!t); - CHECK(!(Task())); - CHECK(!(Task{})); + CHECK(not t); + CHECK(not(Task())); + CHECK(not(Task{})); } TEST_CASE("Task constructed from empty function is empty", "[task]") { std::function empty_function; Task t_from_empty_function{empty_function}; - CHECK(!Task(std::function{})); - CHECK(!Task(empty_function)); - CHECK(!t_from_empty_function); + CHECK(not Task(std::function{})); + CHECK(not Task(empty_function)); + CHECK(not t_from_empty_function); } TEST_CASE("Task constructed from user defined callable object is not empty", -- cgit v1.2.3