]> git.ipfire.org Git - thirdparty/glibc.git/blame - localedata/tests-mbwc/dat_wctob.c
iconv, localedef: avoid floating point rounding differences [BZ #24372]
[thirdparty/glibc.git] / localedata / tests-mbwc / dat_wctob.c
CommitLineData
5b905722
AJ
1/*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
3 *
4 * FILE: dat_wctob.c
5 *
6 * ISW*: int wctob( wint_t wc );
7 */
8
9
10TST_WCTOB tst_wctob_loc [] = {
11
12 { { Twctob, TST_LOC_de },
13 {
ec7956d9
AJ
14 { { WEOF }, { 0, 1, EOF } },
15 { { 0x0020 }, { 0, 1, 0x20 } },
16 { { 0x0061 }, { 0, 1, 0x61 } },
17 { { 0x0080 }, { 0, 1, 0x80 } },
18 { { 0x00C4 }, { 0, 1, 0xC4 } },
19 { { 0x30C4 }, { 0, 1, EOF } },
1cb990bc 20 { .is_last = 1 } /* Last element. */
5b905722
AJ
21 }
22 },
23 { { Twctob, TST_LOC_enUS },
24 {
ec7956d9
AJ
25 { { WEOF }, { 0, 1, EOF } },
26 { { 0x0020 }, { 0, 1, 0x20 } },
27 { { 0x0061 }, { 0, 1, 0x61 } },
0e16ecfa 28 /* XXX These are no valid characters. */
ec7956d9
AJ
29 { { 0x0080 }, { 0, 1, EOF } },
30 { { 0x00C4 }, { 0, 1, EOF } },
ec7956d9 31 { { 0x30C4 }, { 0, 1, EOF } },
1cb990bc 32 { .is_last = 1 } /* Last element. */
5b905722
AJ
33 }
34 },
35 { { Twctob, TST_LOC_eucJP },
36 {
ec7956d9
AJ
37 { { WEOF }, { 0, 1, EOF } },
38 { { 0x0020 }, { 0, 1, 0x20 } },
39 { { 0x0061 }, { 0, 1, 0x61 } },
40 { { 0x0080 }, { 0, 1, 0x80 } },
41 { { 0x00FF }, { 0, 1, EOF } },
42 { { 0x00C4 }, { 0, 1, EOF } },
43 { { 0x30C4 }, { 0, 1, EOF } },
1cb990bc 44 { .is_last = 1 } /* Last element. */
5b905722
AJ
45 }
46 },
47 { { Twctob, TST_LOC_end } }
48};