Updated to fedora-glibc-20060807T1859
[glibc/history.git] / localedata / tests-mbwc / dat_wcslen.c
blob1bc5900a74caa45b44e04b3e5f67dddee8add7e0
1 /*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN CLIBRARY
4 * FILE: dat_wcslen.c
6 * WCSLEN: size_t wcslen (const wchar_t *ws);
7 */
11 * NOTE:
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, },
32 { .is_last = 1 }
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, },
43 { .is_last = 1 }
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, },
54 { .is_last = 1 }
57 { { Twcslen, TST_LOC_end }}