]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add test for isw* functions.
authorUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:59:04 +0000 (23:59 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:59:04 +0000 (23:59 +0000)
wctype/test_wctype.c

index bc2c7e9d18557b138a8af774d1dfcfc08fbca15b..df8f7e224a3e711fe8ab7713eeb6cc360df91410 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -48,12 +48,20 @@ main (int argc, char *argv[])
     {
 #define TEST(test)                                                           \
       do                                                                     \
-       if ((is##test (ch) == 0) != (iswctype (ch, bit_##test)) == 0)         \
-         {                                                                   \
-           printf ("class `%s' test for character \\%o failed\n",            \
-                   #test, ch);                                               \
-           result = 1;                                                       \
-         }                                                                   \
+       {                                                                     \
+         if ((is##test (ch) == 0) != (iswctype (ch, bit_##test)) == 0)       \
+           {                                                                 \
+             printf ("class `%s' test for character \\%o failed\n",          \
+                     #test, ch);                                             \
+             result = 1;                                                     \
+           }                                                                 \
+         if ((is##test (ch) == 0) != (isw##test (ch) == 0))                  \
+           {                                                                 \
+             printf ("`isw%s' test for character \\%o failed\n",             \
+                     #test, ch);                                             \
+             result = 1;                                                     \
+           }                                                                 \
+       }                                                                     \
       while (0)
 
       TEST (alnum);