Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4242fc94
Commit
4242fc94
authored
Apr 24, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Added more FoldString tests.
parent
a08710f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
locale.c
dlls/kernel32/tests/locale.c
+19
-0
No files found.
dlls/kernel32/tests/locale.c
View file @
4242fc94
...
...
@@ -2102,6 +2102,18 @@ static void test_FoldStringW(void)
{
'W'
,
'i'
,
'n'
,
'e'
,
0x0348
,
0x0551
,
0x1323
,
0x280d
,
'W'
,
'i'
,
'n'
,
'e'
,
'\0'
};
static
const
WCHAR
foldczone_todo_src
[]
=
{
0x3c5
,
0x308
,
0x6a
,
0x30c
,
0xa0
,
0xaa
,
0
};
static
const
WCHAR
foldczone_todo_dst
[]
=
{
0x3cb
,
0x1f0
,
' '
,
'a'
,
0
};
static
const
WCHAR
foldczone_todo_broken_dst
[]
=
{
0x3cb
,
0x1f0
,
0xa0
,
0xaa
,
0
};
static
const
WCHAR
ligatures_src
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
0x03a6
,
0x03b9
,
0x03bd
,
0x03b5
,
...
...
@@ -2246,6 +2258,13 @@ static void test_FoldStringW(void)
ok
(
!
memcmp
(
dst
,
foldczone_dst
,
sizeof
(
foldczone_dst
)),
"MAP_FOLDCZONE: Expanded incorrectly
\n
"
);
ret
=
pFoldStringW
(
MAP_FOLDCZONE
|
MAP_PRECOMPOSED
,
foldczone_todo_src
,
-
1
,
dst
,
256
);
todo_wine
ok
(
ret
==
sizeof
(
foldczone_todo_dst
)
/
sizeof
(
foldczone_todo_dst
[
0
]),
"Got %d, error %d
\n
"
,
ret
,
GetLastError
());
todo_wine
ok
(
!
memcmp
(
dst
,
foldczone_todo_dst
,
sizeof
(
foldczone_todo_dst
))
||
broken
(
!
memcmp
(
dst
,
foldczone_todo_broken_dst
,
sizeof
(
foldczone_todo_broken_dst
))),
"MAP_FOLDCZONE: Expanded incorrectly (%s)
\n
"
,
wine_dbgstr_w
(
dst
));
/* MAP_EXPAND_LIGATURES */
SetLastError
(
0
);
ret
=
pFoldStringW
(
MAP_EXPAND_LIGATURES
,
ligatures_src
,
-
1
,
dst
,
256
);
...
...
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