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-basen.c
diff --git
a/lib/t-basen.c
b/lib/t-basen.c
index 751d4b0ee67cd6588125a1a21ab03baddf191927..99b52f992445c70836f67b50cf4c59d4e320ef46 100644
(file)
--- a/
lib/t-basen.c
+++ b/
lib/t-basen.c
@@
-19,11
+19,10
@@
*/
#include "test.h"
*/
#include "test.h"
-void test_basen(void) {
+
static
void test_basen(void) {
unsigned long v[64];
char buffer[1024];
unsigned long v[64];
char buffer[1024];
- fprintf(stderr, "test_basen\n");
v[0] = 999;
insist(basen(v, 1, buffer, sizeof buffer, 10) == 0);
check_string(buffer, "999");
v[0] = 999;
insist(basen(v, 1, buffer, sizeof buffer, 10) == 0);
check_string(buffer, "999");
@@
-53,6
+52,8
@@
void test_basen(void) {
insist(basen(v, 4, buffer, 10, 16) == -1);
}
insist(basen(v, 4, buffer, 10, 16) == -1);
}
+TEST(basen);
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2