Improve coverage of the test suite.

This commit is contained in:
Patrick Pelissier committed 2023-04-05 23:07:52 +02:00
1 parent 9d77448a25
commit f858aa2cb5
4 files changed
+159 -6

No files matched your search

+2
View File
@@ -380,6 +380,8 @@ static void test_clz(void)
}
M_LET(s1, bitset_t) {
bitset_reset(s1);
assert(bitset_ctz(s1) == 0);
bitset_set_str(s1, "[00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]");
assert(bitset_ctz(s1) == 116);
bitset_set_str(s1, "[10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000]");