X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Funictype%2Ftest-bidi_name.c;h=03b3674e47ae5fbc0f1d769d9ad03bc9a5f349ff;hb=c7aa07015971a1f9dcb1b345d48e843dd33a98d1;hp=300e98405c8d66bd5d9439ba804ca42ffe1e49c6;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/unictype/test-bidi_name.c b/tests/unictype/test-bidi_name.c index 300e98405..03b3674e4 100644 --- a/tests/unictype/test-bidi_name.c +++ b/tests/unictype/test-bidi_name.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,27 +18,15 @@ #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 (strcmp (uc_bidi_category_name (UC_BIDI_NSM), "NSM") == 0); - ASSERT (uc_bidi_category_name (-1) == NULL); + ASSERT (strcmp (uc_bidi_class_name (UC_BIDI_NSM), "NSM") == 0); + ASSERT (uc_bidi_class_name (-1) == NULL); return 0; }