chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/ tests now use Automake's test infrastructure, and are split into
[disorder]
/
lib
/
t-hex.c
diff --git
a/lib/t-hex.c
b/lib/t-hex.c
index 3f6ba99717349d783f6b90e25ee0cd665459819e..966d22666234ba3d7f2c72f92960747908173e6c 100644
(file)
--- a/
lib/t-hex.c
+++ b/
lib/t-hex.c
@@
-19,14
+19,12
@@
*/
#include "test.h"
*/
#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;
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);
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");
}
fprintf(stderr, "}\n");
}
+TEST(hex);
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2