X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/5cbe7ad10a8cd66e2f6b6b476c58ba8c30a3c1a8..0d0253c93a64d2b5206e902c648e1e2c6bc5d510:/lib/t-bits.c diff --git a/lib/t-bits.c b/lib/t-bits.c index 846abb8..80bfdf5 100644 --- a/lib/t-bits.c +++ b/lib/t-bits.c @@ -20,10 +20,9 @@ #include "test.h" #include "bits.h" -void test_bits(void) { +static void test_bits(void) { int n; - printf("test_bits\n"); check_integer(leftmost_bit(0), -1); check_integer(leftmost_bit(0x80000000), 31); check_integer(leftmost_bit(0xffffffff), 31); @@ -36,6 +35,8 @@ void test_bits(void) { } } +TEST(bits); + /* Local Variables: c-basic-offset:2