Fix various bugs. Comment out unresolved issues.
[kopensolaris-gnu/glibc.git] / localedata / tests-mbwc / dat_wcslen.c
1 /*
2  *  TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
3  *
4  *       FILE:  dat_wcslen.c
5  *
6  *       WCSLEN:  size_t wcslen (const wchar_t *ws);
7  */
8
9
10 /*
11  *  NOTE:
12  *
13  *      a header in each expected data:
14  *
15  *         int  err_flg;  ... set err_flg=1 to check errno
16  *         int  err_val;  ... expected value for errno
17  *        <typ> ret_flg; ... set ret_flg=1 to compare an expected
18  *                           value with an actual value
19  *        <typ> ret_val; ... expected value for return
20  */
21
22
23 TST_WCSLEN tst_wcslen_loc [] = {
24
25   {   { Twcslen, TST_LOC_de },
26       {
27         { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 } },  /* #01 */
28           /*expect*/ { 0,0,1,3,                        },
29         },
30         { /*input.*/ { { 0x0000 }                      },  /* #02 */
31           /*expect*/ { 0,0,1,0,                        },
32         },
33         { is_last: 1 }
34       }
35   },
36   {   { Twcslen, TST_LOC_enUS },
37       {
38         { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 } },  /* #01 */
39           /*expect*/ { 0,0,1,3,                        },
40         },
41         { /*input.*/ { { 0x0000 }                      },  /* #02 */
42           /*expect*/ { 0,0,1,0,                        },
43         },
44         { is_last: 1 }
45       }
46   },
47   {   { Twcslen, TST_LOC_eucJP },
48       {
49         { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 } },  /* #01 */
50           /*expect*/ { 0,0,1,3,                        },
51         },
52         { /*input.*/ { { 0x0000 }                      },  /* #02 */
53           /*expect*/ { 0,0,1,0,                        },
54         },
55         { is_last: 1 }
56       }
57   },
58   {   { Twcslen, TST_LOC_end }}
59 };