2.9
[glibc/nacl-glibc.git] / localedata / tests-mbwc / dat_wctype.c
blob3e1c10ae5bf5148d92279fd0d1e6062ba41a0ae2
1 /*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
4 * FILE: dat_wctype.c
6 * WCTYPE: wctype_t wctype( const char *class );
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_WCTYPE tst_wctype_loc [] = {
19 { { Twctype, TST_LOC_de },
21 { /*inp*/ { "alnum" }, /* #01 */
22 /*exp*/ { 0,0,0, },
24 { /*inp*/ { "alpha" }, /* #02 */
25 /*exp*/ { 0,0,0, },
27 { /*inp*/ { "cntrl" }, /* #03 */
28 /*exp*/ { 0,0,0, },
30 { /*inp*/ { "digit" }, /* #04 */
31 /*exp*/ { 0,0,0, },
33 { /*inp*/ { "graph" }, /* #05 */
34 /*exp*/ { 0,0,0, },
36 { /*inp*/ { "lower" }, /* #06 */
37 /*exp*/ { 0,0,0, },
39 { /*inp*/ { "print" }, /* #07 */
40 /*exp*/ { 0,0,0, },
42 { /*inp*/ { "punct" }, /* #08 */
43 /*exp*/ { 0,0,0, },
45 { /*inp*/ { "space" }, /* #09 */
46 /*exp*/ { 0,0,0, },
48 { /*inp*/ { "upper" }, /* #10 */
49 /*exp*/ { 0,0,0, },
51 { /*inp*/ { "xdigit" }, /* #11 */
52 /*exp*/ { 0,0,0, },
54 { /*inp*/ { "" }, /* #12 */
55 /*exp*/ { 0,1,0, },
57 { /*inp*/ { "ideograph" }, /* #13 */
58 /*exp*/ { 0,1,0, },
60 { /*inp*/ { "english" }, /* #14 */
61 /*exp*/ { 0,1,0, },
63 { /*inp*/ { "ascii" }, /* #15 */
64 /*exp*/ { 0,1,0, },
66 { /*inp*/ { "special" }, /* #16 */
67 /*exp*/ { 0,1,0, },
69 { .is_last = 1 }
72 { { Twctype, TST_LOC_enUS },
74 { /*inp*/ { "alnum" }, /* #01 */
75 /*exp*/ { 0,0,0, },
77 { /*inp*/ { "alpha" }, /* #02 */
78 /*exp*/ { 0,0,0, },
80 { /*inp*/ { "cntrl" }, /* #03 */
81 /*exp*/ { 0,0,0, },
83 { /*inp*/ { "digit" }, /* #04 */
84 /*exp*/ { 0,0,0, },
86 { /*inp*/ { "graph" }, /* #05 */
87 /*exp*/ { 0,0,0, },
89 { /*inp*/ { "lower" }, /* #06 */
90 /*exp*/ { 0,0,0, },
92 { /*inp*/ { "print" }, /* #07 */
93 /*exp*/ { 0,0,0, },
95 { /*inp*/ { "punct" }, /* #08 */
96 /*exp*/ { 0,0,0, },
98 { /*inp*/ { "space" }, /* #09 */
99 /*exp*/ { 0,0,0, },
101 { /*inp*/ { "upper" }, /* #10 */
102 /*exp*/ { 0,0,0, },
104 { /*inp*/ { "xdigit" }, /* #11 */
105 /*exp*/ { 0,0,0, },
107 { /*inp*/ { "" }, /* #12 */
108 /*exp*/ { 0,1,0, },
110 { /*inp*/ { "ideograph" }, /* #13 */
111 /*exp*/ { 0,1,0, },
113 { /*inp*/ { "english" }, /* #14 */
114 /*exp*/ { 0,1,0, },
116 { /*inp*/ { "ascii" }, /* #15 */
117 /*exp*/ { 0,1,0, },
119 { /*inp*/ { "special" }, /* #16 */
120 /*exp*/ { 0,1,0, },
122 { .is_last = 1 }
125 { { Twctype, TST_LOC_eucJP },
127 { /*inp*/ { "alnum" }, /* #01 */
128 /*exp*/ { 0,0,0, },
130 { /*inp*/ { "alpha" }, /* #02 */
131 /*exp*/ { 0,0,0, },
133 { /*inp*/ { "cntrl" }, /* #03 */
134 /*exp*/ { 0,0,0, },
136 { /*inp*/ { "digit" }, /* #04 */
137 /*exp*/ { 0,0,0, },
139 { /*inp*/ { "graph" }, /* #05 */
140 /*exp*/ { 0,0,0, },
142 { /*inp*/ { "lower" }, /* #06 */
143 /*exp*/ { 0,0,0, },
145 { /*inp*/ { "print" }, /* #07 */
146 /*exp*/ { 0,0,0, },
148 { /*inp*/ { "punct" }, /* #08 */
149 /*exp*/ { 0,0,0, },
151 { /*inp*/ { "space" }, /* #09 */
152 /*exp*/ { 0,0,0, },
154 { /*inp*/ { "upper" }, /* #10 */
155 /*exp*/ { 0,0,0, },
157 { /*inp*/ { "xdigit" }, /* #11 */
158 /*exp*/ { 0,0,0, },
160 { /*inp*/ { "ideogram" }, /* #12 */
161 /*exp*/ { 0,1,0, },
163 { /*inp*/ { "phonogram" }, /* #13 */
164 /*exp*/ { 0,1,0, },
166 { /*inp*/ { "jspace" }, /* #14 */
167 /*exp*/ { 0,0,0, },
169 { /*inp*/ { "jhira" }, /* #15 */
170 /*exp*/ { 0,0,0, },
172 { /*inp*/ { "jkata" }, /* #16 */
173 /*exp*/ { 0,0,0, },
175 { /*inp*/ { "jkanji" }, /* #17 */
176 /*exp*/ { 0,0,0, },
178 { /*inp*/ { "jdigit" }, /* #18 */
179 /*exp*/ { 0,0,0, },
181 { .is_last = 1 }
184 { { Twctype, TST_LOC_end }}