Test for MultiByteToWideChar added. Still needs alot fleshing out.

svn path=/trunk/; revision=57529
This commit is contained in:
Mike Nordell 2012-10-10 19:10:49 +00:00
parent 7dd746b9cb
commit 335fb884d4
3 changed files with 25 additions and 0 deletions

View file

@ -6,6 +6,7 @@ list(APPEND SOURCE
GetDriveType.c GetDriveType.c
GetModuleFileName.c GetModuleFileName.c
lstrcpynW.c lstrcpynW.c
MultiByteToWideChar.c
SetCurrentDirectory.c SetCurrentDirectory.c
SetUnhandledExceptionFilter.c SetUnhandledExceptionFilter.c
testlist.c) testlist.c)

View 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);
}

View file

@ -9,6 +9,7 @@ extern void func_GetCurrentDirectory(void);
extern void func_GetDriveType(void); extern void func_GetDriveType(void);
extern void func_GetModuleFileName(void); extern void func_GetModuleFileName(void);
extern void func_lstrcpynW(void); extern void func_lstrcpynW(void);
extern void func_MultiByteToWideChar(void);
extern void func_SetCurrentDirectory(void); extern void func_SetCurrentDirectory(void);
extern void func_SetUnhandledExceptionFilter(void); extern void func_SetUnhandledExceptionFilter(void);
@ -18,6 +19,7 @@ const struct test winetest_testlist[] =
{ "GetDriveType", func_GetDriveType }, { "GetDriveType", func_GetDriveType },
{ "GetModuleFileName", func_GetModuleFileName }, { "GetModuleFileName", func_GetModuleFileName },
{ "lstrcpynW", func_lstrcpynW }, { "lstrcpynW", func_lstrcpynW },
{ "MultiByteToWideChar", func_MultiByteToWideChar },
{ "SetCurrentDirectory", func_SetCurrentDirectory }, { "SetCurrentDirectory", func_SetCurrentDirectory },
{ "SetUnhandledExceptionFilter", func_SetUnhandledExceptionFilter}, { "SetUnhandledExceptionFilter", func_SetUnhandledExceptionFilter},