2.9
[glibc/nacl-glibc.git] / localedata / tests-mbwc / dat_wctrans.c
blob1e7cb6c6dc9e445f73c56c032453d593e9f9550f
1 /*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
4 * FILE: dat_wctrans.c
6 * WCTRANS: wctrans_t wctrans( const char *charclass );
7 */
9 /*
10 * NOTE:
11 * When a return value is expected to be 0 (false),
12 * set ret_flg=1 and set ret_val=0.
13 * Otherwise just set ret_flg=0.
17 TST_WCTRANS tst_wctrans_loc [] = {
19 { { Twctrans, TST_LOC_de },
21 { /*inp*/ { "" }, /* #1 */
22 /*exp*/ { 0,1,0, },
24 { /*inp*/ { "upper" }, /* #2 */
25 /*exp*/ { 0,1,0, },
27 { /*inp*/ { "lower" }, /* #3 */
28 /*exp*/ { 0,1,0, },
30 { /*inp*/ { "toupper" }, /* #4 */
31 /*exp*/ { 0,0,0, },
33 { /*inp*/ { "tolower" }, /* #5 */
34 /*exp*/ { 0,0,0, },
36 { /*inp*/ { "xxxxx" }, /* #6 */
37 /*exp*/ { 0,1,0, },
39 { .is_last = 1 }
42 { { Twctrans, TST_LOC_enUS },
44 { /*inp*/ { "" }, /* #1 */
45 /*exp*/ { 0,1,0, },
47 { /*inp*/ { "upper" }, /* #2 */
48 /*exp*/ { 0,1,0, },
50 { /*inp*/ { "lower" }, /* #3 */
51 /*exp*/ { 0,1,0, },
53 { /*inp*/ { "toupper" }, /* #4 */
54 /*exp*/ { 0,0,0, },
56 { /*inp*/ { "tolower" }, /* #5 */
57 /*exp*/ { 0,0,0, },
59 { /*inp*/ { "xxxxx" }, /* #6 */
60 /*exp*/ { 0,1,0, },
62 { .is_last = 1 }
65 { { Twctrans, TST_LOC_eucJP },
67 { /*inp*/ { "" }, /* #1 */
68 /*exp*/ { 0,1,0, },
70 { /*inp*/ { "upper" }, /* #2 */
71 /*exp*/ { 0,1,0, },
73 { /*inp*/ { "lower" }, /* #3 */
74 /*exp*/ { 0,1,0, },
76 { /*inp*/ { "toupper" }, /* #4 */
77 /*exp*/ { 0,0,0, },
79 { /*inp*/ { "tolower" }, /* #5 */
80 /*exp*/ { 0,0,0, },
82 { /*inp*/ { "xxxxx" }, /* #6 */
83 /*exp*/ { 0,1,0, },
85 { /*inp*/ { "tojhira" }, /* #7 */
86 /*exp*/ { 0,0,0, },
88 { /*inp*/ { "tojkata" }, /* #8 */
89 /*exp*/ { 0,0,0, },
91 { .is_last = 1 }
94 { { Twctrans, TST_LOC_end }}