mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
Test for MultiByteToWideChar added. Still needs alot fleshing out.
svn path=/trunk/; revision=57529
This commit is contained in:
parent
7dd746b9cb
commit
335fb884d4
3 changed files with 25 additions and 0 deletions
|
@ -6,6 +6,7 @@ list(APPEND SOURCE
|
|||
GetDriveType.c
|
||||
GetModuleFileName.c
|
||||
lstrcpynW.c
|
||||
MultiByteToWideChar.c
|
||||
SetCurrentDirectory.c
|
||||
SetUnhandledExceptionFilter.c
|
||||
testlist.c)
|
||||
|
|
22
rostests/apitests/kernel32/MultiByteToWideChar.c
Normal file
22
rostests/apitests/kernel32/MultiByteToWideChar.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* PROJECT: ReactOS api tests
|
||||
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
||||
* PURPOSE: Test for MultiByteToWideChar
|
||||
* PROGRAMMER: Mike "tamlin" Nordell
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <wine/test.h>
|
||||
|
||||
|
||||
START_TEST(MultiByteToWideChar)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = MultiByteToWideChar(CP_UTF8, 0, "a", sizeof("a"), 0, 0);
|
||||
ok(ret == 2, "ret should be 2, is %d\n", ret);
|
||||
|
||||
ret = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, "a", sizeof("a"), 0, 0);
|
||||
ok(ret == 2, "ret should be 2, is %d\n", ret);
|
||||
}
|
|
@ -9,6 +9,7 @@ extern void func_GetCurrentDirectory(void);
|
|||
extern void func_GetDriveType(void);
|
||||
extern void func_GetModuleFileName(void);
|
||||
extern void func_lstrcpynW(void);
|
||||
extern void func_MultiByteToWideChar(void);
|
||||
extern void func_SetCurrentDirectory(void);
|
||||
extern void func_SetUnhandledExceptionFilter(void);
|
||||
|
||||
|
@ -18,6 +19,7 @@ const struct test winetest_testlist[] =
|
|||
{ "GetDriveType", func_GetDriveType },
|
||||
{ "GetModuleFileName", func_GetModuleFileName },
|
||||
{ "lstrcpynW", func_lstrcpynW },
|
||||
{ "MultiByteToWideChar", func_MultiByteToWideChar },
|
||||
{ "SetCurrentDirectory", func_SetCurrentDirectory },
|
||||
{ "SetUnhandledExceptionFilter", func_SetUnhandledExceptionFilter},
|
||||
|
||||
|
|
Loading…
Reference in a new issue