X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Funicase%2Ftest-u16-totitle.c;h=0ada840f93cfa38e740d9c3b8717f5f0cf86a9aa;hb=906943bafa97f097349474b393980d7e84855036;hp=ae03d3b60ab3d698dc7212d4b8882e8d1dc25f24;hpb=a562f3635a01ccc315d964f115b7c256a94a44b6;p=gnulib.git diff --git a/tests/unicase/test-u16-totitle.c b/tests/unicase/test-u16-totitle.c index ae03d3b60..0ada840f9 100644 --- a/tests/unicase/test-u16-totitle.c +++ b/tests/unicase/test-u16-totitle.c @@ -1,5 +1,5 @@ /* Test of titlecase mapping for UTF-16 strings. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2013 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 uint16_t *input, size_t input_length,