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
380a505b
Commit
380a505b
authored
Jun 30, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for NORM_IGNORENONSPACE and NORM_IGNORESYMBOLS in the
LCMapString(LCMAP_SORTKEY) branch.
parent
217fdab7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
locale.c
dlls/kernel/tests/locale.c
+40
-0
No files found.
dlls/kernel/tests/locale.c
View file @
380a505b
...
...
@@ -832,6 +832,26 @@ void test_LCMapStringA(void)
ok
(
ret
==
ret2
,
"lengths of sort keys must be equal
\n
"
);
ok
(
!
lstrcmpA
(
buf
,
buf2
),
"sort keys must be equal
\n
"
);
/* test LCMAP_SORTKEY | NORM_IGNORENONSPACE */
ret
=
LCMapStringA
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
|
NORM_IGNORENONSPACE
,
lower_case
,
-
1
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"LCMapStringA must succeed
\n
"
);
ret2
=
LCMapStringA
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
,
lower_case
,
-
1
,
buf2
,
sizeof
(
buf2
));
ok
(
ret2
,
"LCMapStringA must succeed
\n
"
);
ok
(
ret
==
ret2
,
"lengths of sort keys must be equal
\n
"
);
ok
(
!
lstrcmpA
(
buf
,
buf2
),
"sort keys must be equal
\n
"
);
/* test LCMAP_SORTKEY | NORM_IGNORESYMBOLS */
ret
=
LCMapStringA
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
|
NORM_IGNORESYMBOLS
,
lower_case
,
-
1
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"LCMapStringA must succeed
\n
"
);
ret2
=
LCMapStringA
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
,
symbols_stripped
,
-
1
,
buf2
,
sizeof
(
buf2
));
ok
(
ret2
,
"LCMapStringA must succeed
\n
"
);
ok
(
ret
==
ret2
,
"lengths of sort keys must be equal
\n
"
);
ok
(
!
lstrcmpA
(
buf
,
buf2
),
"sort keys must be equal
\n
"
);
/* test NORM_IGNORENONSPACE */
lstrcpyA
(
buf
,
"foo"
);
ret
=
LCMapStringA
(
LOCALE_USER_DEFAULT
,
NORM_IGNORENONSPACE
,
...
...
@@ -957,6 +977,26 @@ void test_LCMapStringW(void)
ok
(
ret
==
ret2
,
"lengths of sort keys must be equal
\n
"
);
ok
(
!
lstrcmpA
(
p_buf
,
p_buf2
),
"sort keys must be equal
\n
"
);
/* test LCMAP_SORTKEY | NORM_IGNORENONSPACE */
ret
=
LCMapStringW
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
|
NORM_IGNORENONSPACE
,
lower_case
,
-
1
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"LCMapStringW must succeed
\n
"
);
ret2
=
LCMapStringW
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
,
lower_case
,
-
1
,
buf2
,
sizeof
(
buf2
));
ok
(
ret2
,
"LCMapStringW must succeed
\n
"
);
ok
(
ret
==
ret2
,
"lengths of sort keys must be equal
\n
"
);
ok
(
!
lstrcmpA
(
p_buf
,
p_buf2
),
"sort keys must be equal
\n
"
);
/* test LCMAP_SORTKEY | NORM_IGNORESYMBOLS */
ret
=
LCMapStringW
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
|
NORM_IGNORESYMBOLS
,
lower_case
,
-
1
,
buf
,
sizeof
(
buf
));
ok
(
ret
,
"LCMapStringW must succeed
\n
"
);
ret2
=
LCMapStringW
(
LOCALE_USER_DEFAULT
,
LCMAP_SORTKEY
,
symbols_stripped
,
-
1
,
buf2
,
sizeof
(
buf2
));
ok
(
ret2
,
"LCMapStringW must succeed
\n
"
);
ok
(
ret
==
ret2
,
"lengths of sort keys must be equal
\n
"
);
ok
(
!
lstrcmpA
(
p_buf
,
p_buf2
),
"sort keys must be equal
\n
"
);
/* test NORM_IGNORENONSPACE */
lstrcpyW
(
buf
,
fooW
);
ret
=
LCMapStringW
(
LOCALE_USER_DEFAULT
,
NORM_IGNORENONSPACE
,
...
...
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