X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Funictype%2Ftest-bidi_of.c;h=5b7a33d22b94cdd317965c0e696d0251da77d3c3;hb=5d706a3590ab4b393e845a1d73787faaae48d408;hp=e06af1938a509253e9b62ffddeb0c04d4613c9b0;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/unictype/test-bidi_of.c b/tests/unictype/test-bidi_of.c index e06af1938..5b7a33d22 100644 --- a/tests/unictype/test-bidi_of.c +++ b/tests/unictype/test-bidi_of.c @@ -1,5 +1,5 @@ /* Test the Unicode character type functions. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2009, 2011 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,28 +18,16 @@ #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 () { - ASSERT (uc_bidi_category ('x') == UC_BIDI_L); - ASSERT (uc_bidi_category (0x05D7) == UC_BIDI_R); - ASSERT (uc_bidi_category ('7') == UC_BIDI_EN); + ASSERT (uc_bidi_class ('x') == UC_BIDI_L); + ASSERT (uc_bidi_class (0x05D7) == UC_BIDI_R); + ASSERT (uc_bidi_class ('7') == UC_BIDI_EN); return 0; }