Updated to fedora-glibc-20061128T1037
[glibc/history.git] / localedata / tests-mbwc / dat_wcscat.c
blob449f4b575dea592597d6e33cf7b30307ec4a679b
1 /*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
4 * FILE: dat_wcscat.c
6 * WCSCAT: wchar_t *wcscat (wchar_t *ws1, wchar_t *ws2)
7 */
9 /* NOTE:
10 Since this is not a locale sensitive function,
11 it doesn't make sense to test the function on some
12 locales. Better make different test cases for each locale ...
13 (Also some wc* functions are not locale sensitive.)
17 TST_WCSCAT tst_wcscat_loc [] = {
20 {Twcscat, TST_LOC_de},
22 /* 1 */
23 {{{ 0x00C1,0x00C2,0x0000 },
24 { 0x00C3,0x00C4,0x0000 }, },
25 { 0, 0, 0,
26 { 0x00C1,0x00C2,0x00C3,0x00C4,0x0000 } },
28 /* 2 */
29 {{{ 0x0001,0x0002,0x0000 },
30 { 0x0003,0x0004,0x0000 }, },
31 { 0, 0, 0,
32 { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
34 /* 3 */
35 {{{ 0x0000 },
36 { 0x00C3,0x00C4,0x0000 }, },
37 { 0, 0, 0,
38 { 0x00C3,0x00C4,0x0000 } },
40 /* 4 */
41 {{{ 0x0001,0xFFFF,0x0000 },
42 { 0x0080,0x0090,0x0000 }, },
43 { 0, 0, 0,
44 { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
46 {.is_last = 1}
50 {Twcscat, TST_LOC_enUS},
52 /* 1 */
53 {{{ 0x0041,0x0042,0x0000 },
54 { 0x0043,0x0044,0x0000 }, },
55 { 0, 0, 0,
56 { 0x0041,0x0042,0x0043,0x0044,0x0000 } },
58 /* 2 */
59 {{{ 0x0001,0x0002,0x0000 },
60 { 0x0003,0x0004,0x0000 }, },
61 { 0, 0, 0,
62 { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
64 /* 3 */
65 {{{ 0x0000 },
66 { 0x0043,0x0044,0x0000 }, },
67 { 0, 0, 0,
68 { 0x0043,0x0044,0x0000 } },
70 /* 4 */
71 {{{ 0x0001,0xFFFF,0x0000 },
72 { 0x0080,0x0090,0x0000 }, },
73 { 0, 0, 0,
74 { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
76 {.is_last = 1}
80 {Twcscat, TST_LOC_eucJP},
82 /* 1 */
83 {{{ 0x30A2,0x74E0,0x0000 },
84 { 0xFF71,0x0041,0x0000 }, },
85 { 0, 0, 0,
86 { 0x30A2,0x74E0,0xFF71,0x0041,0x0000 } },
88 /* 2 */
89 {{{ 0x0001,0x0002,0x0000 },
90 { 0x0003,0x0004,0x0000 }, },
91 { 0, 0, 0,
92 { 0x0001,0x0002,0x0003,0x0004,0x0000 } },
94 /* 3 */
95 {{{ 0x30A2,0xFF71,0x0000 },
96 { 0x0000 }, },
97 { 0, 0, 0,
98 { 0x30A2,0xFF71,0x0000 } },
100 /* 4 */
101 {{{ 0x0001,0xFFFF,0x0000 },
102 { 0x0080,0x0090,0x0000 }, },
103 { 0, 0, 0,
104 { 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
106 {.is_last = 1}
110 {Twcscat, TST_LOC_end}