1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | /*============================================================================ |
6 | ** |
7 | ** Source: test3.c |
8 | ** |
9 | ** Purpose: Tests swscanf with bracketed set strings |
10 | ** |
11 | ** |
12 | **==========================================================================*/ |
13 | |
14 | |
15 | |
16 | #include <palsuite.h> |
17 | #include "../swscanf.h" |
18 | |
19 | |
20 | int __cdecl main(int argc, char *argv[]) |
21 | { |
22 | if (PAL_Initialize(argc, argv)) |
23 | { |
24 | return FAIL; |
25 | } |
26 | |
27 | DoWStrTest(convert("bar1" ), convert("%[a-z]" ), convert("bar" )); |
28 | DoWStrTest(convert("bar1" ), convert("%[z-a]" ), convert("bar" )); |
29 | DoWStrTest(convert("bar1" ), convert("%[ab]" ), convert("ba" )); |
30 | DoWStrTest(convert("bar1" ), convert("%[ar1b]" ), convert("bar1" )); |
31 | DoWStrTest(convert("bar1" ), convert("%[^4]" ), convert("bar1" )); |
32 | DoWStrTest(convert("bar1" ), convert("%[^4a]" ), convert("b" )); |
33 | |
34 | PAL_Terminate(); |
35 | return PASS; |
36 | } |
37 | |