chiark / gitweb /
lib/ tests now use Automake's test infrastructure, and are split into
[disorder] / lib / t-words.c
index 4b3ee5523d79dc79cd2155cd48aa0184d0cf6305..30730c929110c24716b8192dc222e36d74e62576 100644 (file)
@@ -49,11 +49,10 @@ struct {
 };
 #define NWTEST (sizeof wtest / sizeof *wtest)
 
-void test_words(void) {
+static void test_words(void) {
   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);
 
@@ -82,6 +81,8 @@ void test_words(void) {
   }
 }
 
+TEST(words);
+
 /*
 Local Variables:
 c-basic-offset:2