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
6e940bb2
Commit
6e940bb2
authored
Sep 06, 2005
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
Sep 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test for failing _ismbblead.
parent
755e2bac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
string.c
dlls/msvcrt/tests/string.c
+12
-0
No files found.
dlls/msvcrt/tests/string.c
View file @
6e940bb2
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include "winbase.h"
#include "winbase.h"
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <mbctype.h>
static
void
*
(
*
pmemcpy
)(
void
*
,
const
void
*
,
size_t
n
);
static
void
*
(
*
pmemcpy
)(
void
*
,
const
void
*
,
size_t
n
);
static
int
*
(
*
pmemcmp
)(
void
*
,
const
void
*
,
size_t
n
);
static
int
*
(
*
pmemcmp
)(
void
*
,
const
void
*
,
size_t
n
);
...
@@ -73,6 +74,14 @@ static void test_swab( void ) {
...
@@ -73,6 +74,14 @@ static void test_swab( void ) {
ok
(
memcmp
(
to
,
expected3
,
testsize
)
==
0
,
"Testing small size %d returned '%*.*s'
\n
"
,
testsize
,
testsize
,
testsize
,
to
);
ok
(
memcmp
(
to
,
expected3
,
testsize
)
==
0
,
"Testing small size %d returned '%*.*s'
\n
"
,
testsize
,
testsize
,
testsize
,
to
);
}
}
void
test_ismbblead
()
{
unsigned
int
s
=
'\354'
;
_setmbcp
(
936
);
todo_wine
ok
(
_ismbblead
(
s
)
==
4
,
"got result %d
\n
"
,
_ismbblead
(
s
));
_setmbcp
(
1252
);
}
START_TEST
(
string
)
START_TEST
(
string
)
{
{
...
@@ -95,4 +104,7 @@ START_TEST(string)
...
@@ -95,4 +104,7 @@ START_TEST(string)
/* Test _swab function */
/* Test _swab function */
test_swab
();
test_swab
();
/* Test ismbblead*/
test_ismbblead
();
}
}
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