diff options
Diffstat (limited to 'test/bitset_test.c')
-rw-r--r-- | test/bitset_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/bitset_test.c b/test/bitset_test.c index 554e238..8fa610f 100644 --- a/test/bitset_test.c +++ b/test/bitset_test.c @@ -53,7 +53,9 @@ main(void) const size_t count = zix_bitset_count_up_to(b, t, N_BITS); if (count != i + 1) { return test_fail("Count %zu != %zu\n", count, i + 1); - } else if (!zix_bitset_get(b, i)) { + } + + if (!zix_bitset_get(b, i)) { return test_fail("Bit %zu is not set\n", i); } } |