diff options
author | kcgen <kcgen@users.noreply.github.com> | 2022-02-16 20:28:27 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-02-16 20:55:34 +0300 |
commit | 1ecdaae05b5eaaf9bc8d34345dcf356477129a21 (patch) | |
tree | 8cb2292044d94380f6fc63507a8ddda8ef1543b8 /tests | |
parent | 8d4fae8f7a985bd9359b38e1b6812d048e6d0b12 (diff) |
Improve the bit operation set-to and mask-to ordering
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bitops_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bitops_tests.cpp b/tests/bitops_tests.cpp index 40e1bbe96..da89165b3 100644 --- a/tests/bitops_tests.cpp +++ b/tests/bitops_tests.cpp @@ -289,8 +289,8 @@ TEST(bitops, masking) EXPECT_TRUE(is(mask_on(reg, b4), b4)); EXPECT_TRUE(cleared(mask_off(reg, b4), b4)); - EXPECT_TRUE(any(mask_to(reg, true, b4), b4)); - EXPECT_TRUE(cleared(mask_to(reg, false, b4), b4)); + EXPECT_TRUE(any(mask_to(reg, b4, true), b4)); + EXPECT_TRUE(cleared(mask_to(reg, b4, false), b4)); EXPECT_TRUE(any(mask_flip(reg, b4), b4)); EXPECT_TRUE(is(mask_flip_all(reg), b4)); } |