2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
6 * WCSCMP: int wcscmp (const wchar_t *ws1, const wchar_t *ws2);
10 This is not a locale sensitive function and
11 it may not make sence testing it for each locale ...
15 TST_WCSCMP tst_wcscmp_loc
[] = {
17 { Twcscmp
, TST_LOC_de
},
19 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
20 { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #1 */
21 /*expect*/ { 0,1,0, },
23 { /*input.*/ { { 0x0000,0x00D1,0x00D3,0x0000 },
24 { 0x0000,0x00D2,0x00D3,0x0000 }, }, /* #2 */
25 /*expect*/ { 0,1,0, },
27 { /*input.*/ { { 0x00D1,0x00D1,0x00D3,0x0000 },
28 { 0x0000,0x00D2,0x00D3,0x0000 }, }, /* #3 */
29 /*expect*/ { 0,1,1, },
31 { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
32 { 0x00D1,0x00D1,0x00D3,0x0000 }, }, /* #4 */
33 /*expect*/ { 0,1,-1, },
35 { /*input.*/ { { 0x00D1,0x00D5,0x00D3,0x0000 },
36 { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #5 */
37 /*expect*/ { 0,1,1, },
39 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
40 { 0x00D1,0x00D2,0x00D9,0x0000 }, }, /* #6 */
41 /*expect*/ { 0,1,-1, },
43 { /*input.*/ { { 0x00D1,0x00D2,0x0000 },
44 { 0x00D1,0x00D2,0x00D9,0x0000 }, }, /* #7 */
45 /*expect*/ { 0,1,-1, },
47 { /*input.*/ { { 0x00D1,0x00D2,0x00D9,0x0000 },
48 { 0x00D1,0x00D2,0x0000 }, }, /* #8 */
49 /*expect*/ { 0,1,1, },
55 { Twcscmp
, TST_LOC_enUS
},
57 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
58 { 0x0041,0x0042,0x0043,0x0000 }, }, /* #1 */
59 /*expect*/ { 0,1,0, },
61 { /*input.*/ { { 0x0000,0x0041,0x0043,0x0000 },
62 { 0x0000,0x0042,0x0043,0x0000 }, }, /* #2 */
63 /*expect*/ { 0,1,0, },
65 { /*input.*/ { { 0x0041,0x0041,0x0043,0x0000 },
66 { 0x0000,0x0042,0x0043,0x0000 }, }, /* #3 */
67 /*expect*/ { 0,1,1, },
69 { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
70 { 0x0041,0x0041,0x0043,0x0000 }, }, /* #4 */
71 /*expect*/ { 0,1,-1, },
73 { /*input.*/ { { 0x0041,0x0045,0x0043,0x0000 },
74 { 0x0041,0x0042,0x0043,0x0000 }, }, /* #5 */
75 /*expect*/ { 0,1,1, },
77 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
78 { 0x0041,0x0042,0x0049,0x0000 }, }, /* #6 */
79 /*expect*/ { 0,1,-1, },
81 { /*input.*/ { { 0x0041,0x0042,0x0000 },
82 { 0x0041,0x0042,0x0049,0x0000 }, }, /* #7 */
83 /*expect*/ { 0,1,-1, },
85 { /*input.*/ { { 0x0041,0x0042,0x0049,0x0000 },
86 { 0x0041,0x0042,0x0000 }, }, /* #8 */
87 /*expect*/ { 0,1,1, },
93 { Twcscmp
, TST_LOC_eucJP
},
95 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
96 { 0x3041,0x3042,0x3043,0x0000 }, }, /* #1 */
97 /*expect*/ { 0,1,0, },
99 { /*input.*/ { { 0x0000,0x3041,0x3043,0x0000 },
100 { 0x0000,0x3042,0x3043,0x0000 }, }, /* #2 */
101 /*expect*/ { 0,1,0, },
103 { /*input.*/ { { 0x3041,0x3041,0x3043,0x0000 },
104 { 0x0000,0x3042,0x3043,0x0000 }, }, /* #3 */
105 /*expect*/ { 0,1,1, },
107 { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
108 { 0x3041,0x3041,0x3043,0x0000 }, }, /* #4 */
109 /*expect*/ { 0,1,-1, },
111 { /*input.*/ { { 0x3041,0x3045,0x3043,0x0000 },
112 { 0x3041,0x3042,0x3043,0x0000 }, }, /* #5 */
113 /*expect*/ { 0,1,1, },
115 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
116 { 0x3041,0x3042,0x3049,0x0000 }, }, /* #6 */
117 /*expect*/ { 0,1,-1, },
119 { /*input.*/ { { 0x3041,0x3042,0x0000 },
120 { 0x3041,0x3042,0x3049,0x0000 }, }, /* #7 */
121 /*expect*/ { 0,1,-1, },
123 { /*input.*/ { { 0x3041,0x3042,0x3049,0x0000 },
124 { 0x3041,0x3042,0x0000 }, }, /* #8 */
125 /*expect*/ { 0,1,1, },
131 { Twcschr
, TST_LOC_end
}