chiark / gitweb /
Bring CGI docs pretty much up to date
[disorder] / lib / t-bits.c
index 846abb87af90dff70bb391b6ae6ba6ef0ff6523f..80bfdf58a407832c048f4c2fa44f0c69c40f6569 100644 (file)
 #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