chiark / gitweb /
Fiddle with playing.tmpl a bit. not fully translated
[disorder] / lib / t-hex.c
index 3f6ba99717349d783f6b90e25ee0cd665459819e..966d22666234ba3d7f2c72f92960747908173e6c 100644 (file)
  */
 #include "test.h"
 
-void test_hex(void) {
+static void test_hex(void) {
   unsigned n;
   static const unsigned char h[] = { 0x00, 0xFF, 0x80, 0x7F };
   uint8_t *u;
   size_t ul;
 
-  fprintf(stderr, "test_hex\n");
-
   for(n = 0; n <= UCHAR_MAX; ++n) {
     if(!isxdigit(n))
       insist(unhexdigitq(n) == -1);
@@ -69,6 +67,8 @@ void test_hex(void) {
   fprintf(stderr, "}\n");
 }
 
+TEST(hex);
+
 /*
 Local Variables:
 c-basic-offset:2