| 16 | #define NTESTS_REALLOC 10 |
| 17 | |
| 18 | static void test_basic_alloc(int nbits) |
| 19 | { |
| 20 | bitmap *bitmap; |
| 21 | |
| 22 | bitmap = bitmap_alloc0(nbits); |
| 23 | ok1(bitmap != NULL); |
| 24 | ok1(bitmap_empty(bitmap, nbits)); |
| 25 | |
| 26 | free(bitmap); |
| 27 | |
| 28 | bitmap = bitmap_alloc1(nbits); |
| 29 | ok1(bitmap != NULL); |
| 30 | ok1(bitmap_full(bitmap, nbits)); |
| 31 | |
| 32 | free(bitmap); |
| 33 | } |
| 34 | |
| 35 | static void test_realloc(int obits, int nbits) |
| 36 | { |
no test coverage detected