* testsuite/newlib.wctype/twctrans.c (main): Use towlower and towupper.

This commit is contained in:
Corinna Vinschen 2015-01-08 09:35:14 +00:00
parent 80d9bfa9a8
commit ee65ca81d7
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2015-01-08 Renlin Li <renlin.li@arm.com>
* testsuite/newlib.wctype/twctrans.c (main): Use towlower and towupper.
2015-01-06 Richard Earnshaw <rearnsha@arm.com> 2015-01-06 Richard Earnshaw <rearnsha@arm.com>
* libc/machine/aarch64/strcpy.S (strcpy): Further performance * libc/machine/aarch64/strcpy.S (strcpy): Further performance

View File

@ -8,13 +8,13 @@ int main()
x = wctrans ("tolower"); x = wctrans ("tolower");
CHECK (x != 0); CHECK (x != 0);
CHECK (towctrans (L'A', x) == tolower ('A')); CHECK (towctrans (L'A', x) == towlower (L'A'));
CHECK (towctrans (L'5', x) == tolower ('5')); CHECK (towctrans (L'5', x) == towlower (L'5'));
x = wctrans ("toupper"); x = wctrans ("toupper");
CHECK (x != 0); CHECK (x != 0);
CHECK (towctrans (L'c', x) == toupper ('c')); CHECK (towctrans (L'c', x) == towupper (L'c'));
CHECK (towctrans (L'9', x) == toupper ('9')); CHECK (towctrans (L'9', x) == towupper (L'9'));
x = wctrans ("unknown"); x = wctrans ("unknown");
CHECK (x == 0); CHECK (x == 0);