Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
344057ef
Commit
344057ef
authored
May 15, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
May 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add more CompareStringW tests.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aac2110e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
locale.c
dlls/kernel32/tests/locale.c
+32
-0
No files found.
dlls/kernel32/tests/locale.c
View file @
344057ef
...
...
@@ -2001,6 +2001,9 @@ static void test_CompareStringW(void)
{
static
const
WCHAR
ABC_EE
[]
=
{
'A'
,
'B'
,
'C'
,
0
,
0xEE
};
static
const
WCHAR
ABC_FF
[]
=
{
'A'
,
'B'
,
'C'
,
0
,
0xFF
};
static
const
WCHAR
A_ACUTE_BC
[]
=
{
0xc1
,
'B'
,
'C'
,
0
};
static
const
WCHAR
A_ACUTE_BC_DECOMP
[]
=
{
'A'
,
0x301
,
'B'
,
'C'
,
0
};
static
const
WCHAR
A_NULL_BC
[]
=
{
'A'
,
0
,
'B'
,
'C'
,
0
};
WCHAR
*
str1
,
*
str2
;
SYSTEM_INFO
si
;
DWORD
old_prot
;
...
...
@@ -2038,6 +2041,35 @@ static void test_CompareStringW(void)
ok
(
ret
==
CSTR_LESS_THAN
,
"expected CSTR_LESS_THAN, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
0
,
ABC_FF
,
5
,
ABC_EE
,
5
);
ok
(
ret
==
CSTR_GREATER_THAN
,
"expected CSTR_GREATER_THAN, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
0
,
ABC_EE
,
4
,
A_ACUTE_BC
,
4
);
todo_wine
ok
(
ret
==
CSTR_LESS_THAN
,
"expected CSTR_LESS_THAN, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
0
,
ABC_EE
,
4
,
A_ACUTE_BC_DECOMP
,
5
);
todo_wine
ok
(
ret
==
CSTR_LESS_THAN
,
"expected CSTR_LESS_THAN, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
0
,
A_ACUTE_BC
,
4
,
A_ACUTE_BC_DECOMP
,
5
);
todo_wine
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_EQUAL, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
NORM_IGNORENONSPACE
,
ABC_EE
,
3
,
A_ACUTE_BC
,
4
);
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_EQUAL, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
NORM_IGNORENONSPACE
,
ABC_EE
,
4
,
A_ACUTE_BC_DECOMP
,
5
);
todo_wine
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_EQUAL, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
NORM_IGNORENONSPACE
,
A_ACUTE_BC
,
4
,
A_ACUTE_BC_DECOMP
,
5
);
todo_wine
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_EQUAL, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
0
,
ABC_EE
,
4
,
A_NULL_BC
,
4
);
todo_wine
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_LESS_THAN, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
NORM_IGNORENONSPACE
,
ABC_EE
,
4
,
A_NULL_BC
,
4
);
todo_wine
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_EQUAL, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
0
,
A_NULL_BC
,
4
,
A_ACUTE_BC
,
4
);
ok
(
ret
==
CSTR_LESS_THAN
,
"expected CSTR_LESS_THAN, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
NORM_IGNORENONSPACE
,
A_NULL_BC
,
4
,
A_ACUTE_BC
,
4
);
todo_wine
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_EQUAL, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
0
,
A_NULL_BC
,
4
,
A_ACUTE_BC_DECOMP
,
5
);
ok
(
ret
==
CSTR_LESS_THAN
,
"expected CSTR_LESS_THAN, got %d
\n
"
,
ret
);
ret
=
CompareStringW
(
CP_ACP
,
NORM_IGNORENONSPACE
,
A_NULL_BC
,
4
,
A_ACUTE_BC_DECOMP
,
5
);
todo_wine
ok
(
ret
==
CSTR_EQUAL
,
"expected CSTR_EQUAL, got %d
\n
"
,
ret
);
}
struct
comparestringex_test
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment