diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 06:05:58 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 06:10:20 +0200 |
commit | 117c211cf7ca94914eef75aa1c1912cd5d6de2ec (patch) | |
tree | 9edc1207f670558276d73cab67c70371272ea4ca /tests/flag_set.cc | |
parent | 43d7c01d6d76706a55e852055f09f0301408ce5d (diff) |
Fix bug in flag_set '==' operator
Diffstat (limited to 'tests/flag_set.cc')
-rw-r--r-- | tests/flag_set.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/flag_set.cc b/tests/flag_set.cc index 3abd505d..05418a05 100644 --- a/tests/flag_set.cc +++ b/tests/flag_set.cc @@ -59,6 +59,16 @@ go_bandit([]() { AssertThat(result, Equals(true)); }); + it("== operator should compare equals as equals", [&] { + // Setup + fs_t fs1 = fs_t::make(1, 3); + fs_t fs2 = fs_t::make(1, 3); + // Exercise + auto result = (fs1 == fs2); + // Verify + AssertThat(result, Equals(true)); + }); + it("| operator should respect the tier and index", [&] { // Setup fs_t fs1 = fs_t::make(0, 31); |