1 /* 2 Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> 3 */ 4 #include <wctype.h> 5 #include "check.h" 6 main(void)7int main(void) 8 { 9 wctrans_t x; 10 11 x = wctrans ("tolower"); 12 CHECK (x != 0); 13 CHECK (towctrans (L'A', x) == towlower (L'A')); 14 CHECK (towctrans (L'5', x) == towlower (L'5')); 15 16 x = wctrans ("toupper"); 17 CHECK (x != 0); 18 CHECK (towctrans (L'c', x) == towupper (L'c')); 19 CHECK (towctrans (L'9', x) == towupper (L'9')); 20 21 x = wctrans ("unknown"); 22 CHECK (x == 0); 23 24 exit (0); 25 } 26