chiark / gitweb /
Fiddle with playing.tmpl a bit. not fully translated
[disorder] / lib / t-utf8.c
index de2f8b379697f740337acee4daf3f5b590636885..a98f956f5bc269ea0ceebab7e03a9cb782b5aa26 100644 (file)
@@ -19,7 +19,7 @@
  */
 #include "test.h"
 
-void test_utf8(void) {
+static void test_utf8(void) {
   /* Test validutf8, convert to UCS-4, check the answer is right,
    * convert back to UTF-8, check we got to where we started */
 #define U8(CHARS, WORDS) do {                  \
@@ -36,7 +36,6 @@ void test_utf8(void) {
   check_string(u8, CHARS);                     \
 } while(0)
 
-  fprintf(stderr, "test_utf8\n");
 #define validutf8(S) utf8_valid((S), strlen(S))
 
   /* empty string */
@@ -134,6 +133,8 @@ void test_utf8(void) {
   insist(!validutf8("\xF8"));
 }
 
+TEST(utf8);
+
 /*
 Local Variables:
 c-basic-offset:2