* testsuite/newlib.wctype/tiswctype.c (main): Use wide character type

function.
This commit is contained in:
Corinna Vinschen 2015-01-12 10:50:26 +00:00
parent fae48dd783
commit 8ddeb7008e
2 changed files with 17 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2015-01-12 Renlin Li <renlin.li@arm.com>
* testsuite/newlib.wctype/tiswctype.c (main): Use wide character type
function.
2015-01-08 Corinna Vinschen <vinschen@redhat.com> 2015-01-08 Corinna Vinschen <vinschen@redhat.com>
* libc/time/strftime.c (__strftime): Utilize __TM_GMTOFF and __TM_ZONE * libc/time/strftime.c (__strftime): Utilize __TM_GMTOFF and __TM_ZONE

View File

@ -8,51 +8,51 @@ int main()
x = wctype ("alpha"); x = wctype ("alpha");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'a', x) && isalpha ('a')); CHECK (iswctype (L'a', x) && iswalpha (L'a'));
x = wctype ("alnum"); x = wctype ("alnum");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'0', x) && isalnum ('0')); CHECK (iswctype (L'0', x) && iswalnum (L'0'));
x = wctype ("blank"); x = wctype ("blank");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L' ', x) && isblank (' ')); CHECK (iswctype (L' ', x) && iswblank (L' '));
x = wctype ("cntrl"); x = wctype ("cntrl");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'\n', x) && iscntrl ('\n')); CHECK (iswctype (L'\n', x) && iswcntrl (L'\n'));
x = wctype ("digit"); x = wctype ("digit");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'7', x) && isdigit ('7')); CHECK (iswctype (L'7', x) && iswdigit (L'7'));
x = wctype ("graph"); x = wctype ("graph");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'!', x) && isgraph ('!')); CHECK (iswctype (L'!', x) && iswgraph (L'!'));
x = wctype ("lower"); x = wctype ("lower");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'k', x) && islower ('k')); CHECK (iswctype (L'k', x) && iswlower (L'k'));
x = wctype ("print"); x = wctype ("print");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'@', x) && isprint ('@')); CHECK (iswctype (L'@', x) && iswprint (L'@'));
x = wctype ("punct"); x = wctype ("punct");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'.', x) && ispunct ('.')); CHECK (iswctype (L'.', x) && iswpunct (L'.'));
x = wctype ("space"); x = wctype ("space");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'\t', x) && isspace ('\t')); CHECK (iswctype (L'\t', x) && iswspace (L'\t'));
x = wctype ("upper"); x = wctype ("upper");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'T', x) && isupper ('T')); CHECK (iswctype (L'T', x) && iswupper (L'T'));
x = wctype ("xdigit"); x = wctype ("xdigit");
CHECK (x != 0); CHECK (x != 0);
CHECK (iswctype (L'B', x) && isxdigit ('B')); CHECK (iswctype (L'B', x) && iswxdigit (L'B'));
x = wctype ("unknown"); x = wctype ("unknown");
CHECK (x == 0); CHECK (x == 0);