Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] Operator precedence
overloaded <</>> has higher precedence than ==
  • Loading branch information
eseiler committed Sep 29, 2023
commit 923fc7db94d9b2eccd9a67c4ab2934493902ccef
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