chiark / gitweb /
Add a new function to compute the leftmost bit of a uint32_t
[disorder] / lib / test.c
index c205a5733a18e172ff4576f4e6ac15fda508dd55..30af3a53d0684328bf3656fd21655c0d58ab30ca 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "test.h"
 
-int tests, errors;
+long long tests, errors;
 int fail_first;
 
 void count_error(void) {
@@ -158,7 +158,8 @@ int main(void) {
   test_hash();
   test_url();
   test_regsub();
-  fprintf(stderr,  "%d errors out of %d tests\n", errors, tests);
+  test_bits();
+  fprintf(stderr,  "%lld errors out of %lld tests\n", errors, tests);
   return !!errors;
 }