Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-01-12 13:50:26 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-01-12 13:50:26 +0300
commit8ddeb7008e806b7df619f51340bff2d41a8a68d4 (patch)
tree60614ad6b826dbab11e5c19b4c9c57c877ab70ff /newlib/testsuite
parentfae48dd783d505b77c4d9135faea023c3f40f659 (diff)
* testsuite/newlib.wctype/tiswctype.c (main): Use wide character type
function.
Diffstat (limited to 'newlib/testsuite')
-rw-r--r--newlib/testsuite/newlib.wctype/tiswctype.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/newlib/testsuite/newlib.wctype/tiswctype.c b/newlib/testsuite/newlib.wctype/tiswctype.c
index da48fbb77..441cddbe6 100644
--- a/newlib/testsuite/newlib.wctype/tiswctype.c
+++ b/newlib/testsuite/newlib.wctype/tiswctype.c
@@ -8,51 +8,51 @@ int main()
x = wctype ("alpha");
CHECK (x != 0);
- CHECK (iswctype (L'a', x) && isalpha ('a'));
+ CHECK (iswctype (L'a', x) && iswalpha (L'a'));
x = wctype ("alnum");
CHECK (x != 0);
- CHECK (iswctype (L'0', x) && isalnum ('0'));
+ CHECK (iswctype (L'0', x) && iswalnum (L'0'));
x = wctype ("blank");
CHECK (x != 0);
- CHECK (iswctype (L' ', x) && isblank (' '));
+ CHECK (iswctype (L' ', x) && iswblank (L' '));
x = wctype ("cntrl");
CHECK (x != 0);
- CHECK (iswctype (L'\n', x) && iscntrl ('\n'));
+ CHECK (iswctype (L'\n', x) && iswcntrl (L'\n'));
x = wctype ("digit");
CHECK (x != 0);
- CHECK (iswctype (L'7', x) && isdigit ('7'));
+ CHECK (iswctype (L'7', x) && iswdigit (L'7'));
x = wctype ("graph");
CHECK (x != 0);
- CHECK (iswctype (L'!', x) && isgraph ('!'));
+ CHECK (iswctype (L'!', x) && iswgraph (L'!'));
x = wctype ("lower");
CHECK (x != 0);
- CHECK (iswctype (L'k', x) && islower ('k'));
+ CHECK (iswctype (L'k', x) && iswlower (L'k'));
x = wctype ("print");
CHECK (x != 0);
- CHECK (iswctype (L'@', x) && isprint ('@'));
+ CHECK (iswctype (L'@', x) && iswprint (L'@'));
x = wctype ("punct");
CHECK (x != 0);
- CHECK (iswctype (L'.', x) && ispunct ('.'));
+ CHECK (iswctype (L'.', x) && iswpunct (L'.'));
x = wctype ("space");
CHECK (x != 0);
- CHECK (iswctype (L'\t', x) && isspace ('\t'));
+ CHECK (iswctype (L'\t', x) && iswspace (L'\t'));
x = wctype ("upper");
CHECK (x != 0);
- CHECK (iswctype (L'T', x) && isupper ('T'));
+ CHECK (iswctype (L'T', x) && iswupper (L'T'));
x = wctype ("xdigit");
CHECK (x != 0);
- CHECK (iswctype (L'B', x) && isxdigit ('B'));
+ CHECK (iswctype (L'B', x) && iswxdigit (L'B'));
x = wctype ("unknown");
CHECK (x == 0);