Commit 5b6d6bec authored by Dominik Charousset's avatar Dominik Charousset

Fix formatting

parent c3eb1365
......@@ -66,14 +66,14 @@ enum class operation {
/// Adds the `block_read` flag to `x` and removes the `read` flag if present.
/// @relates operation
[[nodiscard]] constexpr operation block_reads(operation x) noexcept {
auto bits = to_integer(x) | 0b0100;;
auto bits = to_integer(x) | 0b0100;
return static_cast<operation>(bits & 0b1110);
}
/// Adds the `block_write` flag to `x` and removes the `write` flag if present.
/// @relates operation
[[nodiscard]] constexpr operation block_writes(operation x) noexcept {
auto bits = to_integer(x) | 0b1000;;
auto bits = to_integer(x) | 0b1000;
return static_cast<operation>(bits & 0b1101);
}
......
......@@ -34,7 +34,7 @@ SCENARIO("add_write_flag adds the write bit unless block_write prevents it") {
CHECK_EQ(add_wr(operation::none), operation::write);
CHECK_EQ(add_wr(operation::read), operation::read_write);
CHECK_EQ(add_wr(operation::write), operation::write);
CHECK_EQ(add_wr(operation::block_read ), operation::write_only);
CHECK_EQ(add_wr(operation::block_read), operation::write_only);
CHECK_EQ(add_wr(operation::block_write), operation::block_write);
CHECK_EQ(add_wr(operation::read_write), operation::read_write);
CHECK_EQ(add_wr(operation::read_only), operation::read_only);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment