]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/test/locale-mbwc/dat_wctrans.c
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / test / locale-mbwc / dat_wctrans.c
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 #if 0
66     {   { Twctrans, TST_LOC_eucJP },
67 #else
68     {   { Twctrans, TST_LOC_ja_UTF8 },
69 #endif
70         {
71           { /*inp*/ { ""               },  /* #1 */
72             /*exp*/ { 0,1,0,         },
73           },
74           { /*inp*/ { "upper"          },  /* #2 */
75             /*exp*/ { 0,1,0,         },
76           },
77           { /*inp*/ { "lower"          },  /* #3 */
78             /*exp*/ { 0,1,0,         },
79           },
80           { /*inp*/ { "toupper"        },  /* #4 */
81             /*exp*/ { 0,0,0,         },
82           },
83           { /*inp*/ { "tolower"        },  /* #5 */
84             /*exp*/ { 0,0,0,         },
85           },
86           { /*inp*/ { "xxxxx"          },  /* #6 */
87             /*exp*/ { 0,1,0,         },
88           },
89           { /*inp*/ { "tojhira"        },  /* #7 */
90             /*exp*/ { 0,0,0,         },
91           },
92           { /*inp*/ { "tojkata"        },  /* #8 */
93             /*exp*/ { 0,0,0,         },
94           },
95           { .is_last = 1 }
96         }
97     },
98     {   { Twctrans, TST_LOC_end }}
99 };