]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/test/locale-mbwc/dat_wctype.c
Inital import
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / test / locale-mbwc / dat_wctype.c
1 /*
2  *  TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
3  *
4  *       FILE:  dat_wctype.c
5  *
6  *       WCTYPE:  wctype_t  wctype( const char *class );
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_WCTYPE tst_wctype_loc [] = {
18
19     {   { Twctype, TST_LOC_de },
20         {
21           { /*inp*/ { "alnum"          },  /* #01 */
22             /*exp*/ { 0,0,0,           },
23           },
24           { /*inp*/ { "alpha"          },  /* #02 */
25             /*exp*/ { 0,0,0,           },
26           },
27           { /*inp*/ { "cntrl"          },  /* #03 */
28             /*exp*/ { 0,0,0,           },
29           },
30           { /*inp*/ { "digit"          },  /* #04 */
31             /*exp*/ { 0,0,0,           },
32           },
33           { /*inp*/ { "graph"          },  /* #05 */
34             /*exp*/ { 0,0,0,           },
35           },
36           { /*inp*/ { "lower"          },  /* #06 */
37             /*exp*/ { 0,0,0,           },
38           },
39           { /*inp*/ { "print"          },  /* #07 */
40             /*exp*/ { 0,0,0,           },
41           },
42           { /*inp*/ { "punct"          },  /* #08 */
43             /*exp*/ { 0,0,0,           },
44           },
45           { /*inp*/ { "space"          },  /* #09 */
46             /*exp*/ { 0,0,0,           },
47           },
48           { /*inp*/ { "upper"          },  /* #10 */
49             /*exp*/ { 0,0,0,           },
50           },
51           { /*inp*/ { "xdigit"         },  /* #11 */
52             /*exp*/ { 0,0,0,           },
53           },
54           { /*inp*/ { ""               },  /* #12 */
55             /*exp*/ { 0,1,0,           },
56           },
57           { /*inp*/ { "ideograph"      },  /* #13 */
58             /*exp*/ { 0,1,0,           },
59           },
60           { /*inp*/ { "english"        },  /* #14 */
61             /*exp*/ { 0,1,0,           },
62           },
63           { /*inp*/ { "ascii"          },  /* #15 */
64             /*exp*/ { 0,1,0,           },
65           },
66           { /*inp*/ { "special"        },  /* #16 */
67             /*exp*/ { 0,1,0,           },
68           },
69           { .is_last = 1 }
70         }
71     },
72     {   { Twctype, TST_LOC_enUS },
73         {
74           { /*inp*/ { "alnum"          },  /* #01 */
75             /*exp*/ { 0,0,0,           },
76           },
77           { /*inp*/ { "alpha"          },  /* #02 */
78             /*exp*/ { 0,0,0,           },
79           },
80           { /*inp*/ { "cntrl"          },  /* #03 */
81             /*exp*/ { 0,0,0,           },
82           },
83           { /*inp*/ { "digit"          },  /* #04 */
84             /*exp*/ { 0,0,0,           },
85           },
86           { /*inp*/ { "graph"          },  /* #05 */
87             /*exp*/ { 0,0,0,           },
88           },
89           { /*inp*/ { "lower"          },  /* #06 */
90             /*exp*/ { 0,0,0,           },
91           },
92           { /*inp*/ { "print"          },  /* #07 */
93             /*exp*/ { 0,0,0,           },
94           },
95           { /*inp*/ { "punct"          },  /* #08 */
96             /*exp*/ { 0,0,0,           },
97           },
98           { /*inp*/ { "space"          },  /* #09 */
99             /*exp*/ { 0,0,0,           },
100           },
101           { /*inp*/ { "upper"          },  /* #10 */
102             /*exp*/ { 0,0,0,           },
103           },
104           { /*inp*/ { "xdigit"         },  /* #11 */
105             /*exp*/ { 0,0,0,           },
106           },
107           { /*inp*/ { ""               },  /* #12 */
108             /*exp*/ { 0,1,0,           },
109           },
110           { /*inp*/ { "ideograph"      },  /* #13 */
111             /*exp*/ { 0,1,0,           },
112           },
113           { /*inp*/ { "english"        },  /* #14 */
114             /*exp*/ { 0,1,0,           },
115           },
116           { /*inp*/ { "ascii"          },  /* #15 */
117             /*exp*/ { 0,1,0,           },
118           },
119           { /*inp*/ { "special"        },  /* #16 */
120             /*exp*/ { 0,1,0,           },
121           },
122           { .is_last = 1 }
123         }
124     },
125 #if 0
126     {   { Twctype, TST_LOC_eucJP },
127 #else
128     {   { Twctype, TST_LOC_ja_UTF8 },
129 #endif
130         {
131           { /*inp*/ { "alnum"          },  /* #01 */
132             /*exp*/ { 0,0,0,           },
133           },
134           { /*inp*/ { "alpha"          },  /* #02 */
135             /*exp*/ { 0,0,0,           },
136           },
137           { /*inp*/ { "cntrl"          },  /* #03 */
138             /*exp*/ { 0,0,0,           },
139           },
140           { /*inp*/ { "digit"          },  /* #04 */
141             /*exp*/ { 0,0,0,           },
142           },
143           { /*inp*/ { "graph"          },  /* #05 */
144             /*exp*/ { 0,0,0,           },
145           },
146           { /*inp*/ { "lower"          },  /* #06 */
147             /*exp*/ { 0,0,0,           },
148           },
149           { /*inp*/ { "print"          },  /* #07 */
150             /*exp*/ { 0,0,0,           },
151           },
152           { /*inp*/ { "punct"          },  /* #08 */
153             /*exp*/ { 0,0,0,           },
154           },
155           { /*inp*/ { "space"          },  /* #09 */
156             /*exp*/ { 0,0,0,           },
157           },
158           { /*inp*/ { "upper"          },  /* #10 */
159             /*exp*/ { 0,0,0,           },
160           },
161           { /*inp*/ { "xdigit"         },  /* #11 */
162             /*exp*/ { 0,0,0,           },
163           },
164           { /*inp*/ { "ideogram"       },  /* #12 */
165             /*exp*/ { 0,1,0,           },
166           },
167           { /*inp*/ { "phonogram"      },  /* #13 */
168             /*exp*/ { 0,1,0,           },
169           },
170           { /*inp*/ { "jspace"         },  /* #14 */
171             /*exp*/ { 0,0,0,           },
172           },
173           { /*inp*/ { "jhira"          },  /* #15 */
174             /*exp*/ { 0,0,0,           },
175           },
176           { /*inp*/ { "jkata"          },  /* #16 */
177             /*exp*/ { 0,0,0,           },
178           },
179           { /*inp*/ { "jkanji"         },  /* #17 */
180             /*exp*/ { 0,0,0,           },
181           },
182           { /*inp*/ { "jdigit"         },  /* #18 */
183             /*exp*/ { 0,0,0,           },
184           },
185           { .is_last = 1 }
186         }
187     },
188     {   { Twctype, TST_LOC_end }}
189 };