Skip to content

Commit

Permalink
[FIX] Operator precedence
Browse files Browse the repository at this point in the history
overloaded <</>> has higher precedence than ==
  • Loading branch information
eseiler committed Sep 28, 2023
1 parent 82b6d5f commit 5c0e35a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/utility/container/dynamic_bitset_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ constexpr bool shift_left_test()
{
seqan3::dynamic_bitset t1{0b1111'0001'0000'1100};

bool res = t1 << 3 == seqan3::dynamic_bitset{0b1000'1000'0110'0000};
bool res = (t1 << 3) == seqan3::dynamic_bitset{0b1000'1000'0110'0000};
t1 <<= 4;
res &= t1 == seqan3::dynamic_bitset{"0001000011000000"};

Expand All @@ -441,7 +441,7 @@ constexpr bool shift_right_test()
{
seqan3::dynamic_bitset t1{0b1111'0001'0000'1100};

bool res = t1 >> 3 == seqan3::dynamic_bitset{"0001111000100001"};
bool res = (t1 >> 3) == seqan3::dynamic_bitset{"0001111000100001"};
t1 >>= 4;
res &= t1 == seqan3::dynamic_bitset{"0000111100010000"};

Expand Down

0 comments on commit 5c0e35a

Please sign in to comment.