X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Funictype%2Ftest-pr_byname.c;h=aa2676f09f4e29d2c5f0221e94a00c96002987f0;hb=92c4eca298b922ec22da488a2b170a92dd6eb519;hp=dc3cf7b560ab5b83f57c46fc33605e8985a4bed5;hpb=a635ca9c01d6e9a747ac9c0c2eed04658486d400;p=gnulib.git diff --git a/tests/unictype/test-pr_byname.c b/tests/unictype/test-pr_byname.c index dc3cf7b56..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 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,20 +18,9 @@ #include "unictype.h" -#include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -46,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;