X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/b90f122bd10bd896f2f9b0cf5676bcd436a7d42e..d22b8a59995829bc14b4490b9bddd95346e0585d:/lib/t-hex.c diff --git a/lib/t-hex.c b/lib/t-hex.c index 3f6ba99..966d226 100644 --- a/lib/t-hex.c +++ b/lib/t-hex.c @@ -19,14 +19,12 @@ */ #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