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
dca1bd86
Commit
dca1bd86
authored
Jan 13, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jan 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add a few additional tests for wcschr.
parent
d8ba7547
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
string.c
dlls/ntdll/tests/string.c
+17
-4
No files found.
dlls/ntdll/tests/string.c
View file @
dca1bd86
...
...
@@ -1113,10 +1113,21 @@ static void test_wtoi64(void)
}
}
static
void
test_wcsfuncs
(
void
)
static
void
test_wcschr
(
void
)
{
static
const
WCHAR
teststringW
[]
=
{
'a'
,
'b'
,
'r'
,
'a'
,
'c'
,
'a'
,
'd'
,
'a'
,
'b'
,
'r'
,
'a'
,
0
};
ok
(
p_wcschr
(
teststringW
,
'a'
)
==
teststringW
+
0
,
"wcschr should have returned a pointer to the first 'a' character
\n
"
);
ok
(
p_wcschr
(
teststringW
,
0
)
==
teststringW
+
11
,
"wcschr should have returned a pointer to the null terminator
\n
"
);
ok
(
p_wcschr
(
teststringW
,
'x'
)
==
NULL
,
"wcschr should have returned NULL
\n
"
);
}
static
void
test_wcsrchr
(
void
)
{
static
const
WCHAR
testing
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
'i'
,
'n'
,
'g'
,
0
};
ok
(
p_wcschr
(
testing
,
0
)
!=
NULL
,
"wcschr Not finding terminating character
\n
"
);
ok
(
p_wcsrchr
(
testing
,
0
)
!=
NULL
,
"wcsrchr Not finding terminating character
\n
"
);
}
...
...
@@ -1140,8 +1151,10 @@ START_TEST(string)
test_wtol
();
if
(
p_wtoi64
)
test_wtoi64
();
if
(
p_wcschr
&&
p_wcsrchr
)
test_wcsfuncs
();
if
(
p_wcschr
)
test_wcschr
();
if
(
p_wcsrchr
)
test_wcsrchr
();
if
(
patoi
)
test_atoi
();
if
(
patol
)
...
...
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