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
cf0704bd
Commit
cf0704bd
authored
May 06, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
May 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Added tests for CharUpper and CharLower.
parent
f937f723
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
wsprintf.c
dlls/user/tests/wsprintf.c
+43
-0
No files found.
dlls/user/tests/wsprintf.c
View file @
cf0704bd
...
...
@@ -50,8 +50,51 @@ static void wsprintfWTest(void)
"wsprintfW zero padded negative value failure
\n
"
);
}
/* Test if the CharUpper / CharLower functions return true 16 bit results,
if the input is a 16 bit input value. Upto Wine 11-2003 the input value
0xff returns 0xffffffff. */
static
void
CharUpperTest
(
void
)
{
int
i
,
out
,
failed
;
failed
=
0
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
out
=
(
int
)
CharUpper
((
LPTSTR
)
i
);
/* printf("%0x ",out); */
if
((
out
>>
16
)
!=
0
)
{
failed
=
1
;
break
;
}
}
ok
(
!
failed
,
"CharUpper failed - 16bit input (0x%0x) returned 32bit result (0x%0x)"
,
i
,
out
);
}
static
void
CharLowerTest
(
void
)
{
int
i
,
out
,
failed
;
failed
=
0
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
out
=
(
int
)
CharLower
((
LPTSTR
)
i
);
/* printf("%0x ",out); */
if
((
out
>>
16
)
!=
0
)
{
failed
=
1
;
break
;
}
}
ok
(
!
failed
,
"CharLower failed - 16bit input (0x%0x) returned 32bit result (0x%0x)"
,
i
,
out
);
}
START_TEST
(
wsprintf
)
{
wsprintfATest
();
wsprintfWTest
();
CharUpperTest
();
CharLowerTest
();
}
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