Improve test suite.

This commit is contained in:
Patrick Pelissier committed 2017-09-26 22:25:40 +02:00
1 parent 2bdbd2f864
commit 9ae9bc5126
1 file changed
+3
+3
View File
@@ -60,6 +60,9 @@ static void test1(void)
bitset_reserve(set2, 0);
assert(bitset_capacity(set2) >= 50 && bitset_capacity(set2) < 100); // rounded
bitset_resize(set2, 100);
for(int i = 0; i < 50; i ++) {
assert (bitset_get(set2, i) == (i%2));
}
for(int i = 50; i < 100; i ++) {
assert (bitset_get(set2, i) == false);
}