• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
3  */
4 /*
5  * Copyright (c) 2021 Huawei Device Co., Ltd.
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #include <wctype.h>
20 
21 #include "gtest/gtest.h"
22 #include "log.h"
23 #include "utils.h"
24 
25 using namespace testing::ext;
26 
27 class ActsUtilWideCheckApiTest : public testing::Test {
28 public:
29     locale_t g_auwcaLocale;
30 protected:
31     // SetUpTestCase: Testsuit setup, run before 1st testcase
SetUpTestCase(void)32     static void SetUpTestCase(void)
33     {
34     }
35     // TearDownTestCase: Testsuit teardown, run after last testcase
TearDownTestCase(void)36     static void TearDownTestCase(void)
37     {
38     }
39     // Testcase setup
SetUp()40     virtual void SetUp()
41     {
42         g_auwcaLocale = newlocale(LC_ALL_MASK, "", (locale_t)0);
43     }
44     // Testcase teardown
TearDown()45     virtual void TearDown()
46     {
47         freelocale(g_auwcaLocale);
48     }
49 };
50 
51 /**
52 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_0100
53 * @tc.name       test iswalnum api with num
54 * @tc.desc       [C- SOFTWARE -0200]
55 */
56 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnum0100, Function | MediumTest | Level1) {
57     wint_t paraVal;
58     int returnVal;
59 
60     paraVal = '2';
61     returnVal = iswalnum(paraVal);
62     LOGD("    iswalnum returnVal:='%d'\n", returnVal);
63     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalnum returnVal:='" << returnVal << "'";
64 }
65 
66 /**
67 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_0200
68 * @tc.name       test iswalnum api with upper alpha
69 * @tc.desc       [C- SOFTWARE -0200]
70 */
71 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnum0200, Function | MediumTest | Level1) {
72     wint_t paraVal;
73     int returnVal;
74 
75     paraVal = 'Z';
76     returnVal = iswalnum(paraVal);
77     LOGD("    iswalnum returnVal:='%d'\n", returnVal);
78     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalnum returnVal:='" << returnVal << "'";
79 }
80 
81 /**
82 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_0300
83 * @tc.name       test iswalnum api with lower alpha
84 * @tc.desc       [C- SOFTWARE -0200]
85 */
86 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnum0300, Function | MediumTest | Level1) {
87     wint_t paraVal;
88     int returnVal;
89 
90     paraVal = 'z';
91     returnVal = iswalnum(paraVal);
92     LOGD("    iswalnum returnVal:='%d'\n", returnVal);
93     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalnum returnVal:='" << returnVal << "'";
94 }
95 
96 /**
97 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_0400
98 * @tc.name       test iswalnum api with space
99 * @tc.desc       [C- SOFTWARE -0200]
100 */
101 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnum0400, Function | MediumTest | Level1) {
102     wint_t paraVal;
103     int returnVal;
104 
105     paraVal = ' ';
106     returnVal = iswalnum(paraVal);
107     LOGD("    iswalnum returnVal:='%d'\n", returnVal);
108     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalnum returnVal:='" << returnVal << "'";
109 }
110 
111 /**
112 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_0500
113 * @tc.name       test iswalnum api with LF
114 * @tc.desc       [C- SOFTWARE -0200]
115 */
116 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnum0500, Function | MediumTest | Level1) {
117     wint_t paraVal;
118     int returnVal;
119 
120     paraVal = '\n';
121     returnVal = iswalnum(paraVal);
122     LOGD("    iswalnum returnVal:='%d'\n", returnVal);
123     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalnum returnVal:='" << returnVal << "'";
124 }
125 
126 /**
127 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_L_0600
128 * @tc.name       test iswalnum_l api with num
129 * @tc.desc       [C- SOFTWARE -0200]
130 */
131 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnumL0600, Function | MediumTest | Level1) {
132     wint_t paraVal;
133     int returnVal;
134 
135     paraVal = '2';
136     returnVal = iswalnum_l(paraVal, g_auwcaLocale);
137     LOGD("    iswalnum_l returnVal:='%d'\n", returnVal);
138     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalnum_l returnVal:='" << returnVal << "'";
139 }
140 
141 /**
142 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_L_0700
143 * @tc.name       test iswalnum_l api with upper alpha
144 * @tc.desc       [C- SOFTWARE -0200]
145 */
146 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnumL0700, Function | MediumTest | Level1) {
147     wint_t paraVal;
148     int returnVal;
149 
150     paraVal = 'Z';
151     returnVal = iswalnum_l(paraVal, g_auwcaLocale);
152     LOGD("    iswalnum_l returnVal:='%d'\n", returnVal);
153     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalnum_l returnVal:='" << returnVal << "'";
154 }
155 
156 /**
157 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_L_0800
158 * @tc.name       test iswalnum_l api with lower alpha
159 * @tc.desc       [C- SOFTWARE -0200]
160 */
161 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnumL0800, Function | MediumTest | Level1) {
162     wint_t paraVal;
163     int returnVal;
164 
165     paraVal = 'z';
166     returnVal = iswalnum_l(paraVal, g_auwcaLocale);
167     LOGD("    iswalnum_l returnVal:='%d'\n", returnVal);
168     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalnum_l returnVal:='" << returnVal << "'";
169 }
170 
171 /**
172 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_L_0900
173 * @tc.name       test iswalnum_l api with space
174 * @tc.desc       [C- SOFTWARE -0200]
175 */
176 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnumL0900, Function | MediumTest | Level1) {
177     wint_t paraVal;
178     int returnVal;
179 
180     paraVal = ' ';
181     returnVal = iswalnum_l(paraVal, g_auwcaLocale);
182     LOGD("    iswalnum_l returnVal:='%d'\n", returnVal);
183     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalnum_l returnVal:='" << returnVal << "'";
184 }
185 
186 /**
187 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALNUM_L_1000
188 * @tc.name       test iswalnum_l api with LF
189 * @tc.desc       [C- SOFTWARE -0200]
190 */
191 HWTEST_F(ActsUtilWideCheckApiTest, testIswalnumL1000, Function | MediumTest | Level1) {
192     wint_t paraVal;
193     int returnVal;
194 
195     paraVal = '\n';
196     returnVal = iswalnum_l(paraVal, g_auwcaLocale);
197     LOGD("    iswalnum_l returnVal:='%d'\n", returnVal);
198     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalnum_l returnVal:='" << returnVal << "'";
199 }
200 
201 /**
202 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_1100
203 * @tc.name       test iswalpha api with lower alpha
204 * @tc.desc       [C- SOFTWARE -0200]
205 */
206 HWTEST_F(ActsUtilWideCheckApiTest, testIswalpha1100, Function | MediumTest | Level1) {
207     wint_t paraVal;
208     int returnVal;
209 
210     paraVal = 'z';
211     returnVal = iswalpha(paraVal);
212     LOGD("    iswalpha returnVal:='%d'\n", returnVal);
213     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalpha returnVal:='" << returnVal << "'";
214 }
215 
216 /**
217 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_1200
218 * @tc.name       test iswalpha api with upper alpha
219 * @tc.desc       [C- SOFTWARE -0200]
220 */
221 HWTEST_F(ActsUtilWideCheckApiTest, testIswalpha1200, Function | MediumTest | Level1) {
222     wint_t paraVal;
223     int returnVal;
224 
225     paraVal = 'Z';
226     returnVal = iswalpha(paraVal);
227     LOGD("    iswalpha returnVal:='%d'\n", returnVal);
228     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalpha returnVal:='" << returnVal << "'";
229 }
230 
231 /**
232 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_1300
233 * @tc.name       test iswalpha api with space
234 * @tc.desc       [C- SOFTWARE -0200]
235 */
236 HWTEST_F(ActsUtilWideCheckApiTest, testIswalpha1300, Function | MediumTest | Level1) {
237     wint_t paraVal;
238     int returnVal;
239 
240     paraVal = ' ';
241     returnVal = iswalpha(paraVal);
242     LOGD("    iswalpha returnVal:='%d'\n", returnVal);
243     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalpha returnVal:='" << returnVal << "'";
244 }
245 
246 /**
247 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_1400
248 * @tc.name       test iswalpha api with LF
249 * @tc.desc       [C- SOFTWARE -0200]
250 */
251 HWTEST_F(ActsUtilWideCheckApiTest, testIswalpha1400, Function | MediumTest | Level1) {
252     wint_t paraVal;
253     int returnVal;
254 
255     paraVal = '\n';
256     returnVal = iswalpha(paraVal);
257     LOGD("    iswalpha returnVal:='%d'\n", returnVal);
258     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalpha returnVal:='" << returnVal << "'";
259 }
260 
261 /**
262 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_L_1500
263 * @tc.name       test iswalpha_l api with lower alpha
264 * @tc.desc       [C- SOFTWARE -0200]
265 */
266 HWTEST_F(ActsUtilWideCheckApiTest, testIswalphaL1500, Function | MediumTest | Level1) {
267     wint_t paraVal;
268     int returnVal;
269 
270     paraVal = 'z';
271     returnVal = iswalpha_l(paraVal, g_auwcaLocale);
272     LOGD("    iswalpha_l returnVal:='%d'\n", returnVal);
273     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalpha_l returnVal:='" << returnVal << "'";
274 }
275 
276 /**
277 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_L_1600
278 * @tc.name       test iswalpha_l api with upper alpha
279 * @tc.desc       [C- SOFTWARE -0200]
280 */
281 HWTEST_F(ActsUtilWideCheckApiTest, testIswalphaL1600, Function | MediumTest | Level1) {
282     wint_t paraVal;
283     int returnVal;
284 
285     paraVal = 'Z';
286     returnVal = iswalpha_l(paraVal, g_auwcaLocale);
287     LOGD("    iswalpha_l returnVal:='%d'\n", returnVal);
288     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswalpha_l returnVal:='" << returnVal << "'";
289 }
290 
291 /**
292 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_L_1700
293 * @tc.name       test iswalpha_l api with space
294 * @tc.desc       [C- SOFTWARE -0200]
295 */
296 HWTEST_F(ActsUtilWideCheckApiTest, testIswalphaL1700, Function | MediumTest | Level1) {
297     wint_t paraVal;
298     int returnVal;
299 
300     paraVal = ' ';
301     returnVal = iswalpha_l(paraVal, g_auwcaLocale);
302     LOGD("    iswalpha_l returnVal:='%d'\n", returnVal);
303     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalpha_l returnVal:='" << returnVal << "'";
304 }
305 
306 /**
307 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWALPHA_L_1800
308 * @tc.name       test iswalpha_l api with LF
309 * @tc.desc       [C- SOFTWARE -0200]
310 */
311 HWTEST_F(ActsUtilWideCheckApiTest, testIswalphaL1800, Function | MediumTest | Level1) {
312     wint_t paraVal;
313     int returnVal;
314 
315     paraVal = '\n';
316     returnVal = iswalpha_l(paraVal, g_auwcaLocale);
317     LOGD("    iswalpha_l returnVal:='%d'\n", returnVal);
318     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswalpha_l returnVal:='" << returnVal << "'";
319 }
320 
321 /**
322 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWBLANK_1900
323 * @tc.name       test iswblank api with space
324 * @tc.desc       [C- SOFTWARE -0200]
325 */
326 HWTEST_F(ActsUtilWideCheckApiTest, testIswblank1900, Function | MediumTest | Level1) {
327     wint_t paraVal;
328     int returnVal;
329 
330     paraVal = ' ';
331     returnVal = iswblank(paraVal);
332     LOGD("    iswblank returnVal:='%d'\n", returnVal);
333     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswblank returnVal:='" << returnVal << "'";
334 }
335 
336 /**
337 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWBLANK_2000
338 * @tc.name       test iswblank api with alpha
339 * @tc.desc       [C- SOFTWARE -0200]
340 */
341 HWTEST_F(ActsUtilWideCheckApiTest, testIswblank2000, Function | MediumTest | Level1) {
342     wint_t paraVal;
343     int returnVal;
344 
345     paraVal = 'A';
346     returnVal = iswblank(paraVal);
347     LOGD("    iswblank returnVal:='%d'\n", returnVal);
348     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswblank returnVal:='" << returnVal << "'";
349 }
350 
351 /**
352 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWBLANK_L_2100
353 * @tc.name       test iswblank_l api with space
354 * @tc.desc       [C- SOFTWARE -0200]
355 */
356 HWTEST_F(ActsUtilWideCheckApiTest, testIswblankL2100, Function | MediumTest | Level1) {
357     wint_t paraVal;
358     int returnVal;
359 
360     paraVal = ' ';
361     returnVal = iswblank_l(paraVal, g_auwcaLocale);
362     LOGD("    iswblank_l returnVal:='%d'\n", returnVal);
363     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswblank_l returnVal:='" << returnVal << "'";
364 }
365 
366 /**
367 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWBLANK_L_2200
368 * @tc.name       test iswblank_l api with alpha
369 * @tc.desc       [C- SOFTWARE -0200]
370 */
371 HWTEST_F(ActsUtilWideCheckApiTest, testIswblankL2200, Function | MediumTest | Level1) {
372     wint_t paraVal;
373     int returnVal;
374 
375     paraVal = 'A';
376     returnVal = iswblank_l(paraVal, g_auwcaLocale);
377     LOGD("    iswblank_l returnVal:='%d'\n", returnVal);
378     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswblank_l returnVal:='" << returnVal << "'";
379 }
380 
381 /**
382 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCNTRL_2300
383 * @tc.name       test iswcntrl api with LF
384 * @tc.desc       [C- SOFTWARE -0200]
385 */
386 HWTEST_F(ActsUtilWideCheckApiTest, testIswcntrl2300, Function | MediumTest | Level1) {
387     wint_t paraVal;
388     int returnVal;
389 
390     paraVal = '\n';
391     returnVal = iswcntrl(paraVal);
392     LOGD("    iswcntrl returnVal:='%d'\n", returnVal);
393     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswcntrl returnVal:='" << returnVal << "'";
394 }
395 
396 /**
397 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCNTRL_2400
398 * @tc.name       test iswcntrl api with alpha
399 * @tc.desc       [C- SOFTWARE -0200]
400 */
401 HWTEST_F(ActsUtilWideCheckApiTest, testIswcntrl2400, Function | MediumTest | Level1) {
402     wint_t paraVal;
403     int returnVal;
404 
405     paraVal = 'A';
406     returnVal = iswcntrl(paraVal);
407     LOGD("    iswcntrl returnVal:='%d'\n", returnVal);
408     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswcntrl returnVal:='" << returnVal << "'";
409 }
410 
411 /**
412 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCNTRL_L_2500
413 * @tc.name       test iswcntrl_l api with LF
414 * @tc.desc       [C- SOFTWARE -0200]
415 */
416 HWTEST_F(ActsUtilWideCheckApiTest, testIswcntrlL2500, Function | MediumTest | Level1) {
417     wint_t paraVal;
418     int returnVal;
419 
420     paraVal = '\n';
421     returnVal = iswcntrl_l(paraVal, g_auwcaLocale);
422     LOGD("    iswcntrl_l returnVal:='%d'\n", returnVal);
423     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswcntrl_l returnVal:='" << returnVal << "'";
424 }
425 
426 /**
427 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCNTRL_L_2600
428 * @tc.name       test iswcntrl_l api with alpha
429 * @tc.desc       [C- SOFTWARE -0200]
430 */
431 HWTEST_F(ActsUtilWideCheckApiTest, testIswcntrlL2600, Function | MediumTest | Level1) {
432     wint_t paraVal;
433     int returnVal;
434 
435     paraVal = 'A';
436     returnVal = iswcntrl_l(paraVal, g_auwcaLocale);
437     LOGD("    iswcntrl_l returnVal:='%d'\n", returnVal);
438     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswcntrl_l returnVal:='" << returnVal << "'";
439 }
440 
441 /**
442 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCTYPE_2700
443 * @tc.name       test iswctype api with alpha
444 * @tc.desc       [C- SOFTWARE -0200]
445 */
446 HWTEST_F(ActsUtilWideCheckApiTest, testIswctype2700, Function | MediumTest | Level1) {
447     wint_t wideChar;
448     wctype_t paraDesc;
449     int returnVal;
450 
451     wideChar = 'A';
452     paraDesc = wctype("alnum");
453     returnVal = iswctype(wideChar, paraDesc);
454     LOGD("    iswctype returnVal:='%d'\n", returnVal);
455     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswctype returnVal:='" << returnVal << "'";
456 }
457 
458 /**
459 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCTYPE_2800
460 * @tc.name       test iswctype api with digit
461 * @tc.desc       [C- SOFTWARE -0200]
462 */
463 HWTEST_F(ActsUtilWideCheckApiTest, testIswctype2800, Function | MediumTest | Level1) {
464     wint_t wideChar;
465     wctype_t paraDesc;
466     int returnVal;
467 
468     wideChar = '3';
469     paraDesc = wctype("alnum");
470     returnVal = iswctype(wideChar, paraDesc);
471     LOGD("    iswctype returnVal:='%d'\n", returnVal);
472     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswctype returnVal:='" << returnVal << "'";
473 }
474 
475 /**
476 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCTYPE_L_2900
477 * @tc.name       test iswctype_l api with alpha
478 * @tc.desc       [C- SOFTWARE -0200]
479 */
480 HWTEST_F(ActsUtilWideCheckApiTest, testIswctypeL2900, Function | MediumTest | Level1) {
481     wint_t wideChar;
482     wctype_t paraDesc;
483     int returnVal;
484 
485     wideChar = 'A';
486     paraDesc = wctype("alnum");
487     returnVal = iswctype_l(wideChar, paraDesc, g_auwcaLocale);
488     LOGD("    iswctype_l returnVal:='%d'\n", returnVal);
489     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswctype_l returnVal:='" << returnVal << "'";
490 }
491 
492 /**
493 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWCTYPE_L_3000
494 * @tc.name       test iswctype_l api with digit
495 * @tc.desc       [C- SOFTWARE -0200]
496 */
497 HWTEST_F(ActsUtilWideCheckApiTest, testIswctypeL3000, Function | MediumTest | Level1) {
498     wint_t wideChar;
499     wctype_t paraDesc;
500     int returnVal;
501 
502     wideChar = '3';
503     paraDesc = wctype("alnum");
504     returnVal = iswctype_l(wideChar, paraDesc, g_auwcaLocale);
505     LOGD("    iswctype_l returnVal:='%d'\n", returnVal);
506     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswctype_l returnVal:='" << returnVal << "'";
507 }
508 
509 /**
510 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWDIGIT_3100
511 * @tc.name       test iswdigit api with digit
512 * @tc.desc       [C- SOFTWARE -0200]
513 */
514 HWTEST_F(ActsUtilWideCheckApiTest, testIswdigit3100, Function | MediumTest | Level1) {
515     wint_t wideChar;
516     int returnVal;
517 
518     wideChar = '3';
519     returnVal = iswdigit(wideChar);
520     LOGD("    iswdigit returnVal:='%d'\n", returnVal);
521     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswdigit returnVal:='" << returnVal << "'";
522 }
523 
524 /**
525 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWDIGIT_3200
526 * @tc.name       test iswdigit api with alpha
527 * @tc.desc       [C- SOFTWARE -0200]
528 */
529 HWTEST_F(ActsUtilWideCheckApiTest, testIswdigit3200, Function | MediumTest | Level1) {
530     wint_t wideChar;
531     int returnVal;
532 
533     wideChar = 'A';
534     returnVal = iswdigit(wideChar);
535     LOGD("    iswdigit returnVal:='%d'\n", returnVal);
536     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswdigit returnVal:='" << returnVal << "'";
537 }
538 
539 /**
540 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWDIGIT_L_3300
541 * @tc.name       test iswdigit_l api with digit
542 * @tc.desc       [C- SOFTWARE -0200]
543 */
544 HWTEST_F(ActsUtilWideCheckApiTest, testIswdigitL3300, Function | MediumTest | Level1) {
545     wint_t wideChar;
546     int returnVal;
547 
548     wideChar = '3';
549     returnVal = iswdigit_l(wideChar, g_auwcaLocale);
550     LOGD("    iswdigit_l returnVal:='%d'\n", returnVal);
551     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswdigit_l returnVal:='" << returnVal << "'";
552 }
553 
554 /**
555 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWDIGIT_L_3400
556 * @tc.name       test iswdigit api with alpha
557 * @tc.desc       [C- SOFTWARE -0200]
558 */
559 HWTEST_F(ActsUtilWideCheckApiTest, testIswdigitL3400, Function | MediumTest | Level1) {
560     wint_t wideChar;
561     int returnVal;
562 
563     wideChar = 'A';
564     returnVal = iswdigit_l(wideChar, g_auwcaLocale);
565     LOGD("    iswdigit_l returnVal:='%d'\n", returnVal);
566     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswdigit_l returnVal:='" << returnVal << "'";
567 }
568 
569 /**
570 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWGRAPH_3500
571 * @tc.name       test iswgraph api with alpha
572 * @tc.desc       [C- SOFTWARE -0200]
573 */
574 HWTEST_F(ActsUtilWideCheckApiTest, testIswgraph3500, Function | MediumTest | Level1) {
575     wint_t wideChar;
576     int returnVal;
577 
578     wideChar = 'A';
579     returnVal = iswgraph(wideChar);
580     LOGD("    iswgraph returnVal:='%d'\n", returnVal);
581     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswgraph returnVal:='" << returnVal << "'";
582 }
583 
584 /**
585 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWGRAPH_3600
586 * @tc.name       test iswgraph api with LF
587 * @tc.desc       [C- SOFTWARE -0200]
588 */
589 HWTEST_F(ActsUtilWideCheckApiTest, testIswgraph3600, Function | MediumTest | Level1) {
590     wint_t wideChar;
591     int returnVal;
592 
593     wideChar = '\n';
594     returnVal = iswgraph(wideChar);
595     LOGD("    iswgraph returnVal:='%d'\n", returnVal);
596     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswgraph returnVal:='" << returnVal << "'";
597 }
598 
599 /**
600 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWGRAPH_L_3700
601 * @tc.name       test iswgraph_l api with alpha
602 * @tc.desc       [C- SOFTWARE -0200]
603 */
604 HWTEST_F(ActsUtilWideCheckApiTest, testIswgraphL3700, Function | MediumTest | Level1) {
605     wint_t wideChar;
606     int returnVal;
607 
608     wideChar = 'A';
609     returnVal = iswgraph_l(wideChar, g_auwcaLocale);
610     LOGD("    iswgraph_l returnVal:='%d'\n", returnVal);
611     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswgraph_l returnVal:='" << returnVal << "'";
612 }
613 
614 /**
615 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWGRAPH_L_3800
616 * @tc.name       test iswgraph_l api with LF
617 * @tc.desc       [C- SOFTWARE -0200]
618 */
619 HWTEST_F(ActsUtilWideCheckApiTest, testIswgraphL3800, Function | MediumTest | Level1) {
620     wint_t wideChar;
621     int returnVal;
622 
623     wideChar = '\n';
624     returnVal = iswgraph_l(wideChar, g_auwcaLocale);
625     LOGD("    iswgraph_l returnVal:='%d'\n", returnVal);
626     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswgraph_l returnVal:='" << returnVal << "'";
627 }
628 
629 /**
630 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWLOWER_3900
631 * @tc.name       test iswlower api with upper alpha
632 * @tc.desc       [C- SOFTWARE -0200]
633 */
634 HWTEST_F(ActsUtilWideCheckApiTest, testIswlower3900, Function | MediumTest | Level1) {
635     wint_t wideChar;
636     int returnVal;
637 
638     wideChar = 'A';
639     returnVal = iswlower(wideChar);
640     LOGD("    iswlower c:='%c',   returnVal:='%c'\n", wideChar, returnVal);
641     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswlower c:='" << wideChar << "',   returnVal:='" << returnVal << "'";
642 }
643 
644 /**
645 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWLOWER_4000
646 * @tc.name       test islower api with lower alpha
647 * @tc.desc       [C- SOFTWARE -0200]
648 */
649 HWTEST_F(ActsUtilWideCheckApiTest, testIswlower4000, Function | MediumTest | Level1) {
650     wint_t wideChar;
651     int returnVal;
652 
653     wideChar = 'a';
654     returnVal = iswlower(wideChar);
655     LOGD("    iswlower c:='%c',   returnVal:='%c'\n", wideChar, returnVal);
656     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswlower c:='" << wideChar << "',   returnVal:='" << returnVal << "'";
657 }
658 
659 /**
660 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWLOWER_4100
661 * @tc.name       test islower api with digit
662 * @tc.desc       [C- SOFTWARE -0200]
663 */
664 HWTEST_F(ActsUtilWideCheckApiTest, testIswlower4100, Function | MediumTest | Level1) {
665     wint_t wideChar;
666     int returnVal;
667 
668     wideChar = '5';
669     returnVal = iswlower(wideChar);
670     LOGD("    iswlower c:='%c',   returnVal:='%c'\n", wideChar, returnVal);
671     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswlower c:='" << wideChar << "',   returnVal:='" << returnVal << "'";
672 }
673 
674 /**
675 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWLOWER_L_4200
676 * @tc.name       test iswlower_l api with upper alpha
677 * @tc.desc       [C- SOFTWARE -0200]
678 */
679 HWTEST_F(ActsUtilWideCheckApiTest, testIswlowerL4200, Function | MediumTest | Level1) {
680     wint_t wideChar;
681     int returnVal;
682 
683     wideChar = 'A';
684     returnVal = iswlower_l(wideChar, g_auwcaLocale);
685     LOGD("    iswlower_l c:='%c',   returnVal:='%c'\n", wideChar, returnVal);
686     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswlower_l c:='" << wideChar << "',   returnVal:='" << returnVal << "'";
687 }
688 
689 /**
690 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWLOWER_L_4300
691 * @tc.name       test iswlower_l api with lower alpha
692 * @tc.desc       [C- SOFTWARE -0200]
693 */
694 HWTEST_F(ActsUtilWideCheckApiTest, testIswlowerL4300, Function | MediumTest | Level1) {
695     wint_t wideChar;
696     int returnVal;
697 
698     wideChar = 'a';
699     returnVal = iswlower_l(wideChar, g_auwcaLocale);
700     LOGD("    iswlower_l c:='%c',   returnVal:='%c'\n", wideChar, returnVal);
701     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswlower_l c:='" << wideChar << "',   returnVal:='" << returnVal << "'";
702 }
703 
704 /**
705 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWLOWER_L_4400
706 * @tc.name       test iswlower_l api with digit
707 * @tc.desc       [C- SOFTWARE -0200]
708 */
709 HWTEST_F(ActsUtilWideCheckApiTest, testIswlowerL4400, Function | MediumTest | Level1) {
710     wint_t wideChar;
711     int returnVal;
712 
713     wideChar = '5';
714     returnVal = iswlower_l(wideChar, g_auwcaLocale);
715     LOGD("    iswlower_l c:='%c',   returnVal:='%c'\n", wideChar, returnVal);
716     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswlower_l c:='" << wideChar << "',   returnVal:='" << returnVal << "'";
717 }
718 
719 /**
720 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPRINT_4500
721 * @tc.name       test iswprint api with alpha
722 * @tc.desc       [C- SOFTWARE -0200]
723 */
724 HWTEST_F(ActsUtilWideCheckApiTest, testIswprint4500, Function | MediumTest | Level1) {
725     wint_t wideChar;
726     int returnVal;
727 
728     wideChar = 'a';
729     returnVal = iswprint(wideChar);
730     LOGD("    iswprint returnVal:='%d'\n", returnVal);
731     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswprint  returnVal:='" << returnVal << "'";
732 }
733 
734 /**
735 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPRINT_4600
736 * @tc.name       test iswprint api with LF
737 * @tc.desc       [C- SOFTWARE -0200]
738 */
739 HWTEST_F(ActsUtilWideCheckApiTest, testIswprint4600, Function | MediumTest | Level1) {
740     wint_t wideChar;
741     int returnVal;
742 
743     wideChar = '\n';
744     returnVal = iswprint(wideChar);
745     LOGD("    iswprint returnVal:='%d'\n", returnVal);
746     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswprint  returnVal:='" << returnVal << "'";
747 }
748 
749 /**
750 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPRINT_L_4700
751 * @tc.name       test iswprint_l api with alpha
752 * @tc.desc       [C- SOFTWARE -0200]
753 */
754 HWTEST_F(ActsUtilWideCheckApiTest, testIswprintL4700, Function | MediumTest | Level1) {
755     wint_t wideChar;
756     int returnVal;
757 
758     wideChar = 'a';
759     returnVal = iswprint_l(wideChar, g_auwcaLocale);
760     LOGD("    iswprint_l returnVal:='%d'\n", returnVal);
761     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswprint_l  returnVal:='" << returnVal << "'";
762 }
763 
764 /**
765 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPRINT_L_4800
766 * @tc.name       test iswprint_l api with LF
767 * @tc.desc       [C- SOFTWARE -0200]
768 */
769 HWTEST_F(ActsUtilWideCheckApiTest, testIswprintL4800, Function | MediumTest | Level1) {
770     wint_t wideChar;
771     int returnVal;
772 
773     wideChar = '\n';
774     returnVal = iswprint_l(wideChar, g_auwcaLocale);
775     LOGD("    iswprint_l returnVal:='%d'\n", returnVal);
776     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswprint_l  returnVal:='" << returnVal << "'";
777 }
778 
779 /**
780 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_4900
781 * @tc.name       test iswpunct api with space
782 * @tc.desc       [C- SOFTWARE -0200]
783 */
784 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunct4900, Function | MediumTest | Level1) {
785     wint_t wideChar;
786     int returnVal;
787 
788     wideChar = ' ';
789     returnVal = iswpunct(wideChar);
790     LOGD("    iswpunct returnVal:='%d'\n", returnVal);
791     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct  returnVal:='" << returnVal << "'";
792 }
793 
794 /**
795 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_5000
796 * @tc.name       test iswpunct api with alpha
797 * @tc.desc       [C- SOFTWARE -0200]
798 */
799 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunct5000, Function | MediumTest | Level1) {
800     wint_t wideChar;
801     int returnVal;
802 
803     wideChar = 'A';
804     returnVal = iswpunct(wideChar);
805     LOGD("    iswpunct returnVal:='%d'\n", returnVal);
806     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct  returnVal:='" << returnVal << "'";
807 }
808 
809 /**
810 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_5100
811 * @tc.name       test iswpunct api with digit
812 * @tc.desc       [C- SOFTWARE -0200]
813 */
814 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunct5100, Function | MediumTest | Level1) {
815     wint_t wideChar;
816     int returnVal;
817 
818     wideChar = '3';
819     returnVal = iswpunct(wideChar);
820     LOGD("    iswpunct returnVal:='%d'\n", returnVal);
821     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct  returnVal:='" << returnVal << "'";
822 }
823 
824 /**
825 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_5200
826 * @tc.name       test iswpunct api with LF
827 * @tc.desc       [C- SOFTWARE -0200]
828 */
829 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunct5200, Function | MediumTest | Level1) {
830     wint_t wideChar;
831     int returnVal;
832 
833     wideChar = '\n';
834     returnVal = iswpunct(wideChar);
835     LOGD("    iswpunct returnVal:='%d'\n", returnVal);
836     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct  returnVal:='" << returnVal << "'";
837 }
838 
839 /**
840 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_L_5300
841 * @tc.name       test iswpunct_l api with space
842 * @tc.desc       [C- SOFTWARE -0200]
843 */
844 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunctL5300, Function | MediumTest | Level1) {
845     wint_t wideChar;
846     int returnVal;
847 
848     wideChar = ' ';
849     returnVal = iswpunct_l(wideChar, g_auwcaLocale);
850     LOGD("    iswpunct_l returnVal:='%d'\n", returnVal);
851     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct_l  returnVal:='" << returnVal << "'";
852 }
853 
854 /**
855 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_L_5400
856 * @tc.name       test iswpunct_l api with alpha
857 * @tc.desc       [C- SOFTWARE -0200]
858 */
859 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunctL5400, Function | MediumTest | Level1) {
860     wint_t wideChar;
861     int returnVal;
862 
863     wideChar = 'A';
864     returnVal = iswpunct_l(wideChar, g_auwcaLocale);
865     LOGD("    iswpunct_l returnVal:='%d'\n", returnVal);
866     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct_l  returnVal:='" << returnVal << "'";
867 }
868 
869 /**
870 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_L_5500
871 * @tc.name       test iswpunct_l api with digit
872 * @tc.desc       [C- SOFTWARE -0200]
873 */
874 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunctL5500, Function | MediumTest | Level1) {
875     wint_t wideChar;
876     int returnVal;
877 
878     wideChar = '3';
879     returnVal = iswpunct_l(wideChar, g_auwcaLocale);
880     LOGD("    iswpunct_l returnVal:='%d'\n", returnVal);
881     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct_l  returnVal:='" << returnVal << "'";
882 }
883 
884 /**
885 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWPUNCT_L_5600
886 * @tc.name       test iswpunct_l api with LF
887 * @tc.desc       [C- SOFTWARE -0200]
888 */
889 HWTEST_F(ActsUtilWideCheckApiTest, testIswpunctL5600, Function | MediumTest | Level1) {
890     wint_t wideChar;
891     int returnVal;
892 
893     wideChar = '\n';
894     returnVal = iswpunct_l(wideChar, g_auwcaLocale);
895     LOGD("    iswpunct_l returnVal:='%d'\n", returnVal);
896     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswpunct_l  returnVal:='" << returnVal << "'";
897 }
898 
899 /**
900 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_5700
901 * @tc.name       test iswspace api with alpha
902 * @tc.desc       [C- SOFTWARE -0200]
903 */
904 HWTEST_F(ActsUtilWideCheckApiTest, testIswspace5700, Function | MediumTest | Level1) {
905     wint_t wideChar;
906     int returnVal;
907 
908     wideChar = 'a';
909     returnVal = iswspace(wideChar);
910     LOGD("    iswspace returnVal:='%d'\n", returnVal);
911     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswspace  returnVal:='" << returnVal << "'";
912 }
913 
914 /**
915 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_5800
916 * @tc.name       test iswspace api with space
917 * @tc.desc       [C- SOFTWARE -0200]
918 */
919 HWTEST_F(ActsUtilWideCheckApiTest, testIswspace5800, Function | MediumTest | Level1) {
920     wint_t wideChar;
921     int returnVal;
922 
923     wideChar = ' ';
924     returnVal = iswspace(wideChar);
925     LOGD("    iswspace returnVal:='%d'\n", returnVal);
926     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace  returnVal:='" << returnVal << "'";
927 }
928 
929 /**
930 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_5900
931 * @tc.name       test iswspace api with LF
932 * @tc.desc       [C- SOFTWARE -0200]
933 */
934 HWTEST_F(ActsUtilWideCheckApiTest, testIswspace5900, Function | MediumTest | Level1) {
935     wint_t wideChar;
936     int returnVal;
937 
938     wideChar = '\n';
939     returnVal = iswspace(wideChar);
940     LOGD("    iswspace returnVal:='%d'\n", returnVal);
941     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace  returnVal:='" << returnVal << "'";
942 }
943 
944 /**
945 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_6000
946 * @tc.name       test iswspace api with CR
947 * @tc.desc       [C- SOFTWARE -0200]
948 */
949 HWTEST_F(ActsUtilWideCheckApiTest, testIswspace6000, Function | MediumTest | Level1) {
950     wint_t wideChar;
951     int returnVal;
952 
953     wideChar = '\r';
954     returnVal = iswspace(wideChar);
955     LOGD("    iswspace returnVal:='%d'\n", returnVal);
956     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace  returnVal:='" << returnVal << "'";
957 }
958 
959 /**
960 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_6100
961 * @tc.name       test iswspace api with form-feed
962 * @tc.desc       [C- SOFTWARE -0200]
963 */
964 HWTEST_F(ActsUtilWideCheckApiTest, testIswspace6100, Function | MediumTest | Level1) {
965     wint_t wideChar;
966     int returnVal;
967 
968     wideChar = '\f';
969     returnVal = iswspace(wideChar);
970     LOGD("    iswspace returnVal:='%d'\n", returnVal);
971     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace  returnVal:='" << returnVal << "'";
972 }
973 
974 /**
975 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_6200
976 * @tc.name       test iswspace api with horizontal tab
977 * @tc.desc       [C- SOFTWARE -0200]
978 */
979 HWTEST_F(ActsUtilWideCheckApiTest, testIswspace6200, Function | MediumTest | Level1) {
980     wint_t wideChar;
981     int returnVal;
982 
983     wideChar = '\t';
984     returnVal = iswspace(wideChar);
985     LOGD("    iswspace returnVal:='%d'\n", returnVal);
986     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace  returnVal:='" << returnVal << "'";
987 }
988 
989 /**
990 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_6300
991 * @tc.name       test iswspace api with vertical tab
992 * @tc.desc       [C- SOFTWARE -0200]
993 */
994 HWTEST_F(ActsUtilWideCheckApiTest, testIswspace6300, Function | MediumTest | Level1) {
995     wint_t wideChar;
996     int returnVal;
997 
998     wideChar = '\v';
999     returnVal = iswspace(wideChar);
1000     LOGD("    iswspace returnVal:='%d'\n", returnVal);
1001     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace  returnVal:='" << returnVal << "'";
1002 }
1003 
1004 /**
1005 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_L_6400
1006 * @tc.name       test iswspace_l api with alpha
1007 * @tc.desc       [C- SOFTWARE -0200]
1008 */
1009 HWTEST_F(ActsUtilWideCheckApiTest, testIswspaceL6400, Function | MediumTest | Level1) {
1010     wint_t wideChar;
1011     int returnVal;
1012 
1013     wideChar = 'a';
1014     returnVal = iswspace_l(wideChar, g_auwcaLocale);
1015     LOGD("    iswspace_l returnVal:='%d'\n", returnVal);
1016     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswspace_l  returnVal:='" << returnVal << "'";
1017 }
1018 
1019 /**
1020 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_L_6500
1021 * @tc.name       test iswspace_l api with space
1022 * @tc.desc       [C- SOFTWARE -0200]
1023 */
1024 HWTEST_F(ActsUtilWideCheckApiTest, testIswspaceL6500, Function | MediumTest | Level1) {
1025     wint_t wideChar;
1026     int returnVal;
1027 
1028     wideChar = ' ';
1029     returnVal = iswspace_l(wideChar, g_auwcaLocale);
1030     LOGD("    iswspace_l returnVal:='%d'\n", returnVal);
1031     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace_l  returnVal:='" << returnVal << "'";
1032 }
1033 
1034 /**
1035 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_L_6600
1036 * @tc.name       test iswspace_l api with LF
1037 * @tc.desc       [C- SOFTWARE -0200]
1038 */
1039 HWTEST_F(ActsUtilWideCheckApiTest, testIswspaceL6600, Function | MediumTest | Level1) {
1040     wint_t wideChar;
1041     int returnVal;
1042 
1043     wideChar = '\n';
1044     returnVal = iswspace_l(wideChar, g_auwcaLocale);
1045     LOGD("    iswspace_l returnVal:='%d'\n", returnVal);
1046     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace_l  returnVal:='" << returnVal << "'";
1047 }
1048 
1049 /**
1050 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_L_6700
1051 * @tc.name       test iswspace_l api with CR
1052 * @tc.desc       [C- SOFTWARE -0200]
1053 */
1054 HWTEST_F(ActsUtilWideCheckApiTest, testIswspaceL6700, Function | MediumTest | Level1) {
1055     wint_t wideChar;
1056     int returnVal;
1057 
1058     wideChar = '\r';
1059     returnVal = iswspace_l(wideChar, g_auwcaLocale);
1060     LOGD("    iswspace_l returnVal:='%d'\n", returnVal);
1061     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace_l  returnVal:='" << returnVal << "'";
1062 }
1063 
1064 /**
1065 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_L_6800
1066 * @tc.name       test iswspace_l api with form-feed
1067 * @tc.desc       [C- SOFTWARE -0200]
1068 */
1069 HWTEST_F(ActsUtilWideCheckApiTest, testIswspaceL6800, Function | MediumTest | Level1) {
1070     wint_t wideChar;
1071     int returnVal;
1072 
1073     wideChar = '\f';
1074     returnVal = iswspace_l(wideChar, g_auwcaLocale);
1075     LOGD("    iswspace_l returnVal:='%d'\n", returnVal);
1076     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace_l  returnVal:='" << returnVal << "'";
1077 }
1078 
1079 /**
1080 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_L_6900
1081 * @tc.name       test iswspace_l api with horizontal tab
1082 * @tc.desc       [C- SOFTWARE -0200]
1083 */
1084 HWTEST_F(ActsUtilWideCheckApiTest, testIswspaceL6900, Function | MediumTest | Level1) {
1085     wint_t wideChar;
1086     int returnVal;
1087 
1088     wideChar = '\t';
1089     returnVal = iswspace_l(wideChar, g_auwcaLocale);
1090     LOGD("    iswspace_l returnVal:='%d'\n", returnVal);
1091     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace_l  returnVal:='" << returnVal << "'";
1092 }
1093 
1094 /**
1095 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWSPACE_L_7000
1096 * @tc.name       test iswspace_l api with vertical tab
1097 * @tc.desc       [C- SOFTWARE -0200]
1098 */
1099 HWTEST_F(ActsUtilWideCheckApiTest, testIswspaceL7000, Function | MediumTest | Level1) {
1100     wint_t wideChar;
1101     int returnVal;
1102 
1103     wideChar = '\v';
1104     returnVal = iswspace_l(wideChar, g_auwcaLocale);
1105     LOGD("    iswspace_l returnVal:='%d'\n", returnVal);
1106     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswspace_l  returnVal:='" << returnVal << "'";
1107 }
1108 
1109 /**
1110 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_7100
1111 * @tc.name       test iswupper api with upper alpha
1112 * @tc.desc       [C- SOFTWARE -0200]
1113 */
1114 HWTEST_F(ActsUtilWideCheckApiTest, testIswupper7100, Function | MediumTest | Level1) {
1115     wint_t wideChar;
1116     int returnVal;
1117 
1118     wideChar = 'A';
1119     returnVal = iswupper(wideChar);
1120     LOGD("    iswupper returnVal:='%d'\n", returnVal);
1121     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswupper  returnVal:='" << returnVal << "'";
1122 }
1123 
1124 /**
1125 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_7200
1126 * @tc.name       test iswupper api with lower alpha
1127 * @tc.desc       [C- SOFTWARE -0200]
1128 */
1129 HWTEST_F(ActsUtilWideCheckApiTest, testIswupper7200, Function | MediumTest | Level1) {
1130     wint_t wideChar;
1131     int returnVal;
1132 
1133     wideChar = 'a';
1134     returnVal = iswupper(wideChar);
1135     LOGD("    iswupper returnVal:='%d'\n", returnVal);
1136     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswupper  returnVal:='" << returnVal << "'";
1137 }
1138 
1139 /**
1140 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_7300
1141 * @tc.name       test iswupper api with digit
1142 * @tc.desc       [C- SOFTWARE -0200]
1143 */
1144 HWTEST_F(ActsUtilWideCheckApiTest, testIswupper7300, Function | MediumTest | Level1) {
1145     wint_t wideChar;
1146     int returnVal;
1147 
1148     wideChar = '5';
1149     returnVal = iswupper(wideChar);
1150     LOGD("    iswupper returnVal:='%d'\n", returnVal);
1151     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswupper  returnVal:='" << returnVal << "'";
1152 }
1153 
1154 /**
1155 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_7400
1156 * @tc.name       test iswupper api with LF
1157 * @tc.desc       [C- SOFTWARE -0200]
1158 */
1159 HWTEST_F(ActsUtilWideCheckApiTest, testIswupper7400, Function | MediumTest | Level1) {
1160     wint_t wideChar;
1161     int returnVal;
1162 
1163     wideChar = '\n';
1164     returnVal = iswupper(wideChar);
1165     LOGD("    iswupper returnVal:='%d'\n", returnVal);
1166     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswupper  returnVal:='" << returnVal << "'";
1167 }
1168 
1169 /**
1170 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_L_7500
1171 * @tc.name       test iswupper_l api with upper alpha
1172 * @tc.desc       [C- SOFTWARE -0200]
1173 */
1174 HWTEST_F(ActsUtilWideCheckApiTest, testIswupperL7500, Function | MediumTest | Level1) {
1175     wint_t wideChar;
1176     int returnVal;
1177 
1178     wideChar = 'A';
1179     returnVal = iswupper_l(wideChar, g_auwcaLocale);
1180     LOGD("    iswupper_l returnVal:='%d'\n", returnVal);
1181     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswupper_l  returnVal:='" << returnVal << "'";
1182 }
1183 
1184 /**
1185 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_L_7600
1186 * @tc.name       test iswupper_l api with lower alpha
1187 * @tc.desc       [C- SOFTWARE -0200]
1188 */
1189 HWTEST_F(ActsUtilWideCheckApiTest, testIswupperL7600, Function | MediumTest | Level1) {
1190     wint_t wideChar;
1191     int returnVal;
1192 
1193     wideChar = 'a';
1194     returnVal = iswupper_l(wideChar, g_auwcaLocale);
1195     LOGD("    iswupper_l returnVal:='%d'\n", returnVal);
1196     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswupper_l  returnVal:='" << returnVal << "'";
1197 }
1198 
1199 /**
1200 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_L_7700
1201 * @tc.name       test iswupper_l api with digit
1202 * @tc.desc       [C- SOFTWARE -0200]
1203 */
1204 HWTEST_F(ActsUtilWideCheckApiTest, testIswupperL7700, Function | MediumTest | Level1) {
1205     wint_t wideChar;
1206     int returnVal;
1207 
1208     wideChar = '5';
1209     returnVal = iswupper_l(wideChar, g_auwcaLocale);
1210     LOGD("    iswupper_l returnVal:='%d'\n", returnVal);
1211     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswupper_l  returnVal:='" << returnVal << "'";
1212 }
1213 
1214 /**
1215 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWUPPER_L_7800
1216 * @tc.name       test iswupper_l api with LF
1217 * @tc.desc       [C- SOFTWARE -0200]
1218 */
1219 HWTEST_F(ActsUtilWideCheckApiTest, testIswupperL7800, Function | MediumTest | Level1) {
1220     wint_t wideChar;
1221     int returnVal;
1222 
1223     wideChar = '\n';
1224     returnVal = iswupper_l(wideChar, g_auwcaLocale);
1225     LOGD("    iswupper_l returnVal:='%d'\n", returnVal);
1226     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswupper_l  returnVal:='" << returnVal << "'";
1227 }
1228 
1229 /**
1230 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWXDIGIT_7900
1231 * @tc.name       test iswxdigit api with xdigit F
1232 * @tc.desc       [C- SOFTWARE -0200]
1233 */
1234 HWTEST_F(ActsUtilWideCheckApiTest, testIswxdigit7900, Function | MediumTest | Level1) {
1235     wint_t wideChar;
1236     int returnVal;
1237 
1238     wideChar = 'F';
1239     returnVal = iswxdigit(wideChar);
1240     LOGD("    iswxdigit returnVal:='%d'\n", returnVal);
1241     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswxdigit  returnVal:='" << returnVal << "'";
1242 }
1243 
1244 /**
1245 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWXDIGIT_8000
1246 * @tc.name       test iswxdigit api with alpha G
1247 * @tc.desc       [C- SOFTWARE -0200]
1248 */
1249 HWTEST_F(ActsUtilWideCheckApiTest, testIswxdigit8000, Function | MediumTest | Level1) {
1250     wint_t wideChar;
1251     int returnVal;
1252 
1253     wideChar = 'G';
1254     returnVal = iswxdigit(wideChar);
1255     LOGD("    iswxdigit returnVal:='%d'\n", returnVal);
1256     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswxdigit  returnVal:='" << returnVal << "'";
1257 }
1258 
1259 /**
1260 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWXDIGIT_L_8100
1261 * @tc.name       test iswxdigit_l api with xdigit F
1262 * @tc.desc       [C- SOFTWARE -0200]
1263 */
1264 HWTEST_F(ActsUtilWideCheckApiTest, testIswxdigitL8100, Function | MediumTest | Level1) {
1265     wint_t wideChar;
1266     int returnVal;
1267 
1268     wideChar = 'F';
1269     returnVal = iswxdigit_l(wideChar, g_auwcaLocale);
1270     LOGD("    iswxdigit_l returnVal:='%d'\n", returnVal);
1271     ASSERT_TRUE(returnVal != 0) << "ErrInfo: iswxdigit_l  returnVal:='" << returnVal << "'";
1272 }
1273 
1274 /**
1275 * @tc.number     SUB_KERNEL_UTIL_WIDECHECK_ISWXDIGIT_L_8200
1276 * @tc.name       test iswxdigit_l api with alpha G
1277 * @tc.desc       [C- SOFTWARE -0200]
1278 */
1279 HWTEST_F(ActsUtilWideCheckApiTest, testIswxdigitL8200, Function | MediumTest | Level1) {
1280     wint_t wideChar;
1281     int returnVal;
1282 
1283     wideChar = 'G';
1284     returnVal = iswxdigit_l(wideChar, g_auwcaLocale);
1285     LOGD("    iswxdigit_l returnVal:='%d'\n", returnVal);
1286     ASSERT_TRUE(0 == returnVal) << "ErrInfo: iswxdigit_l  returnVal:='" << returnVal << "'";
1287 }