diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-05 12:40:04 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-07 14:43:19 +0200 |
commit | ed6f31f4c9939d6cc8d4d317d561a94545750b0b (patch) | |
tree | 122e2a01c4a56b0fc25d94236d459101ffb80f65 /test/buildtool/multithreading | |
parent | 4989605b096701fee6f1049bdad0827f81d9fb00 (diff) | |
download | justbuild-ed6f31f4c9939d6cc8d4d317d561a94545750b0b.tar.gz |
Replace classic C boolean operators with keywords
! => not; && => and, || => or
Diffstat (limited to 'test/buildtool/multithreading')
-rw-r--r-- | test/buildtool/multithreading/async_map_consumer.test.cpp | 2 | ||||
-rw-r--r-- | test/buildtool/multithreading/task.test.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
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<void()> empty_function; Task t_from_empty_function{empty_function}; - CHECK(!Task(std::function<void()>{})); - CHECK(!Task(empty_function)); - CHECK(!t_from_empty_function); + CHECK(not Task(std::function<void()>{})); + CHECK(not Task(empty_function)); + CHECK(not t_from_empty_function); } TEST_CASE("Task constructed from user defined callable object is not empty", |