Further test files from locale test suite.
[kopensolaris-gnu/glibc.git] / localedata / tests-mbwc / dat_wcwidth.c
1 /*
2  *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
3  *
4  *       FILE:  dat_wcwidth.c
5  *
6  *       WCWIDTH:  int wcwidth (wchar_t wc);
7  */
8
9 TST_WCWIDTH tst_wcwidth_loc [] = {
10     {
11       { Twcwidth, TST_LOC_de },
12       {
13         { /*inp*/ { 0x0000                   },  /* #01 */
14           /*exp*/ { 0,0,        1,0,         },
15         },
16         { /*inp*/ { 0x0020                   },  /* #02 */
17           /*exp*/ { 0,0,        1,1,         },
18         },
19         { /*inp*/ { 0x007F                   },  /* #03 */
20           /*exp*/ { 0,0,        1,-1,        },
21         },
22         { /*inp*/ { 0x0080                   },  /* #04 */
23           /*exp*/ { 0,0,        1,-1,        },
24         },
25         { /*inp*/ { 0x00A1                   },  /* #05 */
26           /*exp*/ { 0,0,        1,1,         },
27         },
28         { /*inp*/ { 0x00C1                   },  /* #06 */
29           /*exp*/ { 0,0,        1,1,         },
30         },
31         /* <WAIVER> */  /* CHECK : wint_t */
32         { /*inp*/ { 0x3041                   },  /* #07 */
33           /*exp*/ { 0,0,        1,0,         },
34         },
35         { is_last: 1 }
36       }
37     },
38     {
39       { Twcwidth, TST_LOC_enUS },
40       {
41         { /*inp*/ { 0x0000                   },  /* #01 */
42           /*exp*/ { 0,0,        1,0,         },
43         },
44         { /*inp*/ { 0x0020                   },  /* #02 */
45           /*exp*/ { 0,0,        1,1,         },
46         },
47         { /*inp*/ { 0x007F                   },  /* #03 */
48           /*exp*/ { 0,0,        1,-1,        },
49         },
50         { /*inp*/ { 0x0080                   },  /* #04 */
51           /*exp*/ { 0,0,        1,-1,        },
52         },
53         /* <WAIVER> */  /* assume ascii */
54         { /*inp*/ { 0x00A1                   },  /* #05 */
55           /*exp*/ { 0,0,        1,-1,        },
56         },
57         /* <WAIVER> */  /* assume ascii */
58         { /*inp*/ { 0x00C1                   },  /* #06 */
59           /*exp*/ { 0,0,        1,-1,        },
60         },
61         /* <WAIVER> */  /* CHECK : wint_t */
62         { /*inp*/ { 0x3041                   },  /* #07 */
63           /*exp*/ { 0,0,        1,-1,        },
64         },
65         { is_last: 1 }
66       }
67     },
68     {
69       { Twcwidth, TST_LOC_eucJP },
70       {
71         { /*inp*/ { 0x0000                   },  /* #01 */
72           /*exp*/ { 0,0,        1,0,         },
73         },
74         { /*inp*/ { 0x0020                   },  /* #02 */
75           /*exp*/ { 0,0,        1,1,         },
76         },
77         { /*inp*/ { 0x007F                   },  /* #03 */
78           /*exp*/ { 0,0,        1,-1,        },
79         },
80         { /*inp*/ { 0x0080                   },  /* #04 */
81           /*exp*/ { 0,0,        1,-1,        },
82         },
83         /* <NO_WAIVER> */
84         { /*inp*/ { 0x00A1                   },  /* #05 */
85           /*exp*/ { 0,0,        1,0,         },
86         },
87         /* jisx0212 */
88         { /*inp*/ { 0x00C1                   },  /* #06 */
89           /*exp*/ { 0,0,        1,2,         },
90         },
91         { /*inp*/ { 0x3041                   },  /* #07 */
92           /*exp*/ { 0,0,        1,2,         },
93         },
94         { is_last: 1 }
95       }
96     },
97     {
98       { Twcwidth, TST_LOC_end }
99     }
100 };