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-words.c
diff --git
a/lib/t-words.c
b/lib/t-words.c
index 4b3ee5523d79dc79cd2155cd48aa0184d0cf6305..30730c929110c24716b8192dc222e36d74e62576 100644
(file)
--- a/
lib/t-words.c
+++ b/
lib/t-words.c
@@
-49,11
+49,10
@@
struct {
};
#define NWTEST (sizeof wtest / sizeof *wtest)
};
#define NWTEST (sizeof wtest / sizeof *wtest)
-void test_words(void) {
+
static
void test_words(void) {
size_t t, nexpect, ngot, i;
int right;
size_t t, nexpect, ngot, i;
int right;
- fprintf(stderr, "test_words\n");
for(t = 0; t < NWTEST; ++t) {
char **got = utf8_word_split(wtest[t].in, strlen(wtest[t].in), &ngot, 0);
for(t = 0; t < NWTEST; ++t) {
char **got = utf8_word_split(wtest[t].in, strlen(wtest[t].in), &ngot, 0);
@@
-82,6
+81,8
@@
void test_words(void) {
}
}
}
}
+TEST(words);
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2