infer_url() now attempts to spot https
[disorder] / lib / t-words.c
index 4b3ee55..30730c9 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