X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Funictype%2Ftest-pr_byname.c;h=aa2676f09f4e29d2c5f0221e94a00c96002987f0;hb=fe9ecba865a2015187a862f25ada175a5d3d8aa8;hp=1b4a935766c82ce21a4c0f34be8995b99433b599;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/unictype/test-pr_byname.c b/tests/unictype/test-pr_byname.c index 1b4a93576..aa2676f09 100644 --- a/tests/unictype/test-pr_byname.c +++ b/tests/unictype/test-pr_byname.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 () @@ -47,7 +35,7 @@ main () { uc_property_t pr = uc_property_byname ("foobar"); - ASSERT (pr.test_fn == NULL); + ASSERT (! uc_property_is_valid (pr)); } return 0;