summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wctype/test_wctype.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/wctype/test_wctype.c b/wctype/test_wctype.c
index bc2c7e9d18..df8f7e224a 100644
--- a/wctype/test_wctype.c
+++ b/wctype/test_wctype.c
@@ -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);