X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Funicase%2Ftest-u32-casefold.c;h=77b037d7f75c788fc53447df6ffa32dd6bab3956;hb=758fee15d9627556a3f0011973e83afb8d56d9be;hp=a1ff4a204c8691836cb898de8445e8f9f0425c32;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/unicase/test-u32-casefold.c b/tests/unicase/test-u32-casefold.c index a1ff4a204..77b037d7f 100644 --- a/tests/unicase/test-u32-casefold.c +++ b/tests/unicase/test-u32-casefold.c @@ -1,5 +1,5 @@ /* Test of casefolding mapping for UTF-32 strings. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,24 +20,11 @@ #include "unicase.h" -#include #include #include "unistr.h" #include "uninorm.h" - -#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" static int check (const uint32_t *input, size_t input_length,