2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
6 * MBTOWC: size_t mbrtowc (wchar_t *pwc, char *s, size_t n,
13 assumes en_US = en_US.ascii
19 TST_MBRTOWC tst_mbrtowc_loc
[] = {
21 { Tmbrtowc
, TST_LOC_de
},
23 { /*----------------- #01 -----------------*/
26 { 1, 1, "ÄÖÜ", 1, 0, 0 },
27 { 1, 1, "ÄÖÜ", 2, 0, 0 },
28 { 1, 1, "ÄÖÜ", USE_MBCURMAX
, 0, 0 },
39 { /*----------------- #02 -----------------*/
42 { 1, 1, "ÄÖÜ", 1, 0, 0 },
43 { 1, 1, "ÄÖÜ", 2, 0, 0 },
44 { 1, 1, "ÄÖÜ", USE_MBCURMAX
, 0, 0 },
59 /* XXX: These tests don't make sense to me. */
61 { Tmbrtowc
, TST_LOC_enUS
},
63 { /*----------------- #01 -----------------*/
66 { 1, 1, "ÄÖÜ", 1, 0, 0 },
67 { 1, 1, "ÄÖÜ", 2, 0, 0 },
68 { 1, 1, "ÄÖÜ", USE_MBCURMAX
, 0, 0 },
79 { /*----------------- #02 -----------------*/
82 { 1, 1, "ÄÖÜ", 1, 0, 0 },
83 { 1, 1, "ÄÖÜ", 2, 0, 0 },
84 { 1, 1, "ÄÖÜ", USE_MBCURMAX
, 0, 0 },
99 { Tmbrtowc
, TST_LOC_eucJP
},
101 { /*----------------- #01 -----------------*/
104 { 1, 1, "ÄÖÜ", 1, 0, 0 },
105 { 1, 1, "ÄÖÜ", 2, 0, 0 },
106 { 1, 1, "ÄÖÜ", USE_MBCURMAX
, 0, 0 },
117 { /*----------------- #02 -----------------*/
120 { 1, 1, "ÄÖÜ", 1, 0, 0 },
121 { 1, 1, "ÄÖÜ", 2, 0, 0 },
122 { 1, 1, "ÄÖÜ", USE_MBCURMAX
, 0, 0 },
138 { Tmbrtowc
, TST_LOC_end
}