]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/test/locale-mbwc/dat_wcscat.c
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / test / locale-mbwc / dat_wcscat.c
1 /*
2  *  TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
3  *
4  *       FILE:  dat_wcscat.c
5  *
6  *       WCSCAT:  wchar_t *wcscat (wchar_t *ws1, wchar_t *ws2)
7  */
8
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.)
14 */
15
16
17 TST_WCSCAT tst_wcscat_loc [] = {
18
19   {
20     {Twcscat, TST_LOC_de},
21     {
22       /* 1 */
23       {{{ 0x00C1,0x00C2,0x0000  },
24         {                       0x00C3,0x00C4,0x0000 }, },
25        {   0,   0,    0,
26            { 0x00C1,0x00C2,0x00C3,0x00C4,0x0000 }       },
27       },
28       /* 2 */
29       {{{ 0x0001,0x0002,0x0000  },
30         {                       0x0003,0x0004,0x0000 }, },
31        {   0,   0,    0,
32            { 0x0001,0x0002,0x0003,0x0004,0x0000 }       },
33       },
34       /* 3 */
35       {{{ 0x0000                  },
36         {                       0x00C3,0x00C4,0x0000 }, },
37        {   0,   0,    0,
38            {            0x00C3,0x00C4,0x0000 }  },
39       },
40       /* 4 */
41       {{{ 0x0001,0xFFFF,0x0000  },
42         {                       0x0080,0x0090,0x0000 }, },
43        {   0,   0,    0,
44            { 0x0001,0xFFFF,0x0080,0x0090,0x0000 }       },
45       },
46       {.is_last = 1}
47     }
48   },
49   {
50     {Twcscat, TST_LOC_enUS},
51     {
52       /* 1 */
53       {{{ 0x0041,0x0042,0x0000  },
54         {                 0x0043,0x0044,0x0000 }, },
55        {   0,     0,    0,
56            { 0x0041,0x0042,0x0043,0x0044,0x0000 }  },
57       },
58       /* 2 */
59       {{{ 0x0001,0x0002,0x0000  },
60         {                 0x0003,0x0004,0x0000 }, },
61        {   0,     0,    0,
62            { 0x0001,0x0002,0x0003,0x0004,0x0000 }  },
63       },
64       /* 3 */
65       {{{ 0x0000                    },
66         {                 0x0043,0x0044,0x0000 }, },
67        {   0,     0,    0,
68            {              0x0043,0x0044,0x0000 }  },
69       },
70       /* 4 */
71       {{{ 0x0001,0xFFFF,0x0000  },
72         {                 0x0080,0x0090,0x0000 }, },
73        {   0,     0,    0,
74            { 0x0001,0xFFFF,0x0080,0x0090,0x0000 }  },
75       },
76       {.is_last = 1}
77     }
78   },
79   {
80 #if 0
81     {Twcscat, TST_LOC_eucJP},
82 #else
83     {Twcscat, TST_LOC_ja_UTF8},
84 #endif
85     {
86       /* 1 */
87       {{{ 0x30A2,0x74E0,0x0000  },
88         {                       0xFF71,0x0041,0x0000 }, },
89        {   0,   0,    0,
90            { 0x30A2,0x74E0,0xFF71,0x0041,0x0000 }       },
91       },
92       /* 2 */
93       {{{ 0x0001,0x0002,0x0000  },
94         {                       0x0003,0x0004,0x0000 }, },
95        {   0,   0,    0,
96            { 0x0001,0x0002,0x0003,0x0004,0x0000 }       },
97       },
98       /* 3 */
99       {{{ 0x30A2,0xFF71,0x0000  },
100         {                       0x0000               }, },
101        {   0,   0,    0,
102            { 0x30A2,0xFF71,0x0000                    }  },
103       },
104       /* 4 */
105       {{{ 0x0001,0xFFFF,0x0000  },
106         {                       0x0080,0x0090,0x0000 }, },
107        {   0,   0,    0,
108            { 0x0001,0xFFFF,0x0080,0x0090,0x0000 }       },
109       },
110       {.is_last = 1}
111     }
112   },
113   {
114     {Twcscat, TST_LOC_end}
115   }
116 };