1 | /* |
2 | * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY |
3 | * |
4 | * FILE: dat_wctrans.c |
5 | * |
6 | * WCTRANS: wctrans_t wctrans( const char *charclass ); |
7 | */ |
8 | |
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. |
14 | */ |
15 | |
16 | |
17 | TST_WCTRANS tst_wctrans_loc [] = { |
18 | |
19 | { { Twctrans, TST_LOC_de }, |
20 | { |
21 | { /*inp*/ { "" }, /* #1 */ |
22 | /*exp*/ { 0,1,0, }, |
23 | }, |
24 | { /*inp*/ { "upper" }, /* #2 */ |
25 | /*exp*/ { 0,1,0, }, |
26 | }, |
27 | { /*inp*/ { "lower" }, /* #3 */ |
28 | /*exp*/ { 0,1,0, }, |
29 | }, |
30 | { /*inp*/ { "toupper" }, /* #4 */ |
31 | /*exp*/ { 0,0,0, }, |
32 | }, |
33 | { /*inp*/ { "tolower" }, /* #5 */ |
34 | /*exp*/ { 0,0,0, }, |
35 | }, |
36 | { /*inp*/ { "xxxxx" }, /* #6 */ |
37 | /*exp*/ { 0,1,0, }, |
38 | }, |
39 | { .is_last = 1 } |
40 | } |
41 | }, |
42 | { { Twctrans, TST_LOC_enUS }, |
43 | { |
44 | { /*inp*/ { "" }, /* #1 */ |
45 | /*exp*/ { 0,1,0, }, |
46 | }, |
47 | { /*inp*/ { "upper" }, /* #2 */ |
48 | /*exp*/ { 0,1,0, }, |
49 | }, |
50 | { /*inp*/ { "lower" }, /* #3 */ |
51 | /*exp*/ { 0,1,0, }, |
52 | }, |
53 | { /*inp*/ { "toupper" }, /* #4 */ |
54 | /*exp*/ { 0,0,0, }, |
55 | }, |
56 | { /*inp*/ { "tolower" }, /* #5 */ |
57 | /*exp*/ { 0,0,0, }, |
58 | }, |
59 | { /*inp*/ { "xxxxx" }, /* #6 */ |
60 | /*exp*/ { 0,1,0, }, |
61 | }, |
62 | { .is_last = 1 } |
63 | } |
64 | }, |
65 | { { Twctrans, TST_LOC_eucJP }, |
66 | { |
67 | { /*inp*/ { "" }, /* #1 */ |
68 | /*exp*/ { 0,1,0, }, |
69 | }, |
70 | { /*inp*/ { "upper" }, /* #2 */ |
71 | /*exp*/ { 0,1,0, }, |
72 | }, |
73 | { /*inp*/ { "lower" }, /* #3 */ |
74 | /*exp*/ { 0,1,0, }, |
75 | }, |
76 | { /*inp*/ { "toupper" }, /* #4 */ |
77 | /*exp*/ { 0,0,0, }, |
78 | }, |
79 | { /*inp*/ { "tolower" }, /* #5 */ |
80 | /*exp*/ { 0,0,0, }, |
81 | }, |
82 | { /*inp*/ { "xxxxx" }, /* #6 */ |
83 | /*exp*/ { 0,1,0, }, |
84 | }, |
85 | { /*inp*/ { "tojhira" }, /* #7 */ |
86 | /*exp*/ { 0,0,0, }, |
87 | }, |
88 | { /*inp*/ { "tojkata" }, /* #8 */ |
89 | /*exp*/ { 0,0,0, }, |
90 | }, |
91 | { .is_last = 1 } |
92 | } |
93 | }, |
94 | { { Twctrans, TST_LOC_end }} |
95 | }; |
96 | |