ARC: Fix max ULP for cosine test
[uclibc-ng.git] / test / locale-mbwc / dat_wcsstr.c
blobf999dc5c6ba6d76f56e99e232aa87e2d2b06b421
1 /*
2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
4 * FILE: dat_wcsstr.c
6 * WCSSTR: wchar_t *wcsstr (const wchar_t *ws1, const wchar_t *ws2);
7 */
9 /*
10 * NOTE:
11 * This is not a locale sensitive function.
12 * So those data in each locale doesn't make sense ...
13 * (redundant test cases)
17 TST_WCSSTR tst_wcsstr_loc [] = {
19 { Twcsstr, TST_LOC_de },
21 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
22 { 0x00D1,0x0000 }, }, /* #01 */
23 /*expect*/ { 0,0,0, },
25 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
26 { 0x00D2,0x0000 }, }, /* #02 */
27 /*expect*/ { 0,0,0, },
29 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
30 { 0x00D3,0x0000 }, }, /* #03 */
31 /*expect*/ { 0,0,0, },
33 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
34 { 0x00D1,0x00D2,0x0000 }, }, /* #04 */
35 /*expect*/ { 0,0,0, },
37 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
38 { 0x00D2,0x00D3,0x0000 }, }, /* #05 */
39 /*expect*/ { 0,0,0, },
41 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
42 { 0x00D1,0x00D2,0x00D3,0x0000 }, }, /* #06 */
43 /*expect*/ { 0,0,0, },
45 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
46 { 0x00D2,0x00D3,0x00D4,0x0000 }, }, /* #07 */
47 /*expect*/ { 0,1,(wchar_t *)NULL, },
49 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
50 { 0x00D0,0x00D1,0x00D2,0x0000 }, }, /* #08 */
51 /*expect*/ { 0,1,(wchar_t *)NULL, },
53 { /*input.*/ { { 0x00D1,0x00D2,0x00D3,0x0000 },
54 { 0x0000 }, }, /* #09 */
55 /*expect*/ { 0,0,0, },
57 { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
58 { 0x00D1,0x0000 }, }, /* #10 */
59 /*expect*/ { 0,1,(wchar_t *)NULL, },
61 { /*input.*/ { { 0x0000,0x00D2,0x00D3,0x0000 },
62 { 0x0000 }, }, /* #11 */
63 /*expect*/ { 0,0,0, },
65 { .is_last = 1 }
69 { Twcsstr, TST_LOC_enUS },
71 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
72 { 0x0041,0x0000 }, }, /* #01 */
73 /*expect*/ { 0,0,0, },
75 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
76 { 0x0042,0x0000 }, }, /* #02 */
77 /*expect*/ { 0,0,0, },
79 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
80 { 0x0043,0x0000 }, }, /* #03 */
81 /*expect*/ { 0,0,0, },
83 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
84 { 0x0041,0x0042,0x0000 }, }, /* #04 */
85 /*expect*/ { 0,0,0, },
87 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
88 { 0x0042,0x0043,0x0000 }, }, /* #05 */
89 /*expect*/ { 0,0,0, },
91 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
92 { 0x0041,0x0042,0x0043,0x0000 }, }, /* #06 */
93 /*expect*/ { 0,0,0, },
95 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
96 { 0x0042,0x0043,0x0044,0x0000 }, }, /* #07 */
97 /*expect*/ { 0,1,(wchar_t *)NULL, },
99 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
100 { 0x0040,0x0041,0x0042,0x0000 }, }, /* #08 */
101 /*expect*/ { 0,1,(wchar_t *)NULL, },
103 { /*input.*/ { { 0x0041,0x0042,0x0043,0x0000 },
104 { 0x0000 }, }, /* #09 */
105 /*expect*/ { 0,0,0, },
107 { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
108 { 0x0041,0x0000 }, }, /* #10 */
109 /*expect*/ { 0,1,(wchar_t *)NULL, },
111 { /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 },
112 { 0x0000 }, }, /* #11 */
113 /*expect*/ { 0,0,0, },
115 { .is_last = 1 }
119 #if 0
120 { Twcsstr, TST_LOC_eucJP },
121 #else
122 { Twcsstr, TST_LOC_ja_UTF8 },
123 #endif
125 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
126 { 0x3041,0x0000 }, }, /* #01 */
127 /*expect*/ { 0,0,0, },
129 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
130 { 0x3042,0x0000 }, }, /* #02 */
131 /*expect*/ { 0,0,0, },
133 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
134 { 0x3043,0x0000 }, }, /* #03 */
135 /*expect*/ { 0,0,0, },
137 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
138 { 0x3041,0x3042,0x0000 }, }, /* #04 */
139 /*expect*/ { 0,0,0, },
141 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
142 { 0x3042,0x3043,0x0000 }, }, /* #05 */
143 /*expect*/ { 0,0,0, },
145 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
146 { 0x3041,0x3042,0x3043,0x0000 }, }, /* #06 */
147 /*expect*/ { 0,0,0, },
149 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
150 { 0x3042,0x3043,0x3044,0x0000 }, }, /* #07 */
151 /*expect*/ { 0,1,(wchar_t *)NULL, },
153 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
154 { 0x3040,0x3041,0x3042,0x0000 }, }, /* #08 */
155 /*expect*/ { 0,1,(wchar_t *)NULL, },
157 { /*input.*/ { { 0x3041,0x3042,0x3043,0x0000 },
158 { 0x0000 }, }, /* #09 */
159 /*expect*/ { 0,0,0, },
161 { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
162 { 0x3041,0x0000 }, }, /* #10 */
163 /*expect*/ { 0,1,(wchar_t *)NULL, },
165 { /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 },
166 { 0x0000 }, }, /* #11 */
167 /*expect*/ { 0,0,0, },
169 { .is_last = 1 }
173 { Twcsstr, TST_LOC_end }