X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Funictype%2Ftest-categ_and.c;h=70d28cc0afbc8d006ed61d945ad64af1b2f96c5e;hb=313a7306cf97fc82111d1e865e067dcd39e38b60;hp=7dc461338c584fd6676e74a9aa737bf176e4731f;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/unictype/test-categ_and.c b/tests/unictype/test-categ_and.c index 7dc461338..70d28cc0a 100644 --- a/tests/unictype/test-categ_and.c +++ b/tests/unictype/test-categ_and.c @@ -1,5 +1,5 @@ /* Test the Unicode character type functions. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2009 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 @@ -18,21 +18,9 @@ #include "unictype.h" -#include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -41,7 +29,7 @@ main () uc_general_category_and ( uc_general_category_or (UC_LETTER, UC_DECIMAL_DIGIT_NUMBER), uc_general_category_or (UC_UPPERCASE_LETTER, UC_NUMBER)); - + ASSERT (uc_is_general_category ('A', ct)); ASSERT (!uc_is_general_category ('a', ct)); ASSERT (uc_is_general_category ('7', ct));