2 * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
6 * WCSLEN: size_t wcslen (const wchar_t *ws);
13 * a header in each expected data:
15 * int err_val; ... expected value for errno
16 * <typ> ret_flg; ... set ret_flg=1 to compare an expected
17 * value with an actual value
18 * <typ> ret_val; ... expected value for return
22 TST_WCSLEN tst_wcslen_loc
[] = {
24 { { Twcslen
, TST_LOC_de
},
26 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 } }, /* #01 */
27 /*expect*/ { 0,1,3, },
29 { /*input.*/ { { 0x0000 } }, /* #02 */
30 /*expect*/ { 0,1,0, },
35 { { Twcslen
, TST_LOC_enUS
},
37 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 } }, /* #01 */
38 /*expect*/ { 0,1,3, },
40 { /*input.*/ { { 0x0000 } }, /* #02 */
41 /*expect*/ { 0,1,0, },
46 { { Twcslen
, TST_LOC_eucJP
},
48 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 } }, /* #01 */
49 /*expect*/ { 0,1,3, },
51 { /*input.*/ { { 0x0000 } }, /* #02 */
52 /*expect*/ { 0,1,0, },
57 { { Twcslen
, TST_LOC_end
}}