summaryrefslogtreecommitdiff
path: root/test/buildtool/multithreading/task.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-05 12:40:04 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-08-07 14:43:19 +0200
commited6f31f4c9939d6cc8d4d317d561a94545750b0b (patch)
tree122e2a01c4a56b0fc25d94236d459101ffb80f65 /test/buildtool/multithreading/task.test.cpp
parent4989605b096701fee6f1049bdad0827f81d9fb00 (diff)
downloadjustbuild-ed6f31f4c9939d6cc8d4d317d561a94545750b0b.tar.gz
Replace classic C boolean operators with keywords
! => not; && => and, || => or
Diffstat (limited to 'test/buildtool/multithreading/task.test.cpp')
-rw-r--r--test/buildtool/multithreading/task.test.cpp12
1 files changed, 6 insertions, 6 deletions
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",