chiark / gitweb /
Further macro tests
[disorder] / lib / t-split.c
index 1b8aa18e2d801a37b3f435cc5f326b0ad89ca888..3737d0c7d216634d2f4c4a1658d728d423d53631 100644 (file)
  */
 #include "test.h"
 
-void test_split(void) {
+static void test_split(void) {
   char **v;
   int nv;
 
-  fprintf(stderr, "test_split\n");
   insist(split("\"misquoted", &nv, SPLIT_COMMENTS|SPLIT_QUOTES, 0, 0) == 0);
   insist(split("\'misquoted", &nv, SPLIT_COMMENTS|SPLIT_QUOTES, 0, 0) == 0);
   insist(split("\'misquoted\\", &nv, SPLIT_COMMENTS|SPLIT_QUOTES, 0, 0) == 0);
@@ -88,6 +87,8 @@ void test_split(void) {
   check_string(quoteutf8("wibble'wobble"), "\"wibble'wobble\"");
 }
 
+TEST(split);
+
 /*
 Local Variables:
 c-basic-offset:2