WinAPI test set, part 2 : string functions

We have some server-side application working on Windows.

We need to port it to Linux and are writing our WinAPI implementation for Linux like Wine.

What we need: a test set which can be started both under Windows (with the native WinAPI)

and under Linux (linked with our implementation). The test set should check those functions:

1. lstrcmpiW( LPCWSTR s1,LPCWSTR s2)

2. lstrlenA( LPCSTR lpString )

3. wsprintfW( LPWSTR lpwOut, LPCWSTR lpwFmt, ...)


5. GetACP(void)

6. WideCharToMultiByte(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cbMultiByte, LPCSTR lpDefaultChar, LPBOOL lpUsedDefaultChar )

7. MultiByteToWideChar(UINT CodePage, DWORD dwFlags, LPCSTR lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar )

8. CharLowerBuffW(LPWSTR,DWORD)

9. CharUpperBuffW(LPWSTR,DWORD)

Each function should have a separate test set consiting of 2 parts:

1) negative tests - all cases when the function can return error (in accordance with [url removed, login to view])

2) positive tests - we need a black-box testing

which can prove the functions work the same way as in Windows. All possible situations

mentioned in MSDN as well as found during Windows testing should be covered and commented,

i.e., we need test different combination of parameters/system states.

We need test it on full set of symbols from ~13 languages (Chinese is present).

All needed locale information tables will be provided by us.

You need make those tests in CUnit working in Windows (with the native API) and provide the code.

I will answer more quickly on your bid in

a case if you will show me an example of possible tests for anyone of those functions

(pseudocode or english language description covered all cases you think we need to test) .

Skills: C Programming

See more: winapi test, winapi tests, winapi check function, winapi string functions, writing with symbols, writing symbols, writing pseudocode, writing functions, writing a programming language, wine com, what is server side programming, what is on the prove it test, what is a string in programming, to string, test prove it, symbols in writing, string the, string programming, string in c programming, string i, string 2, server side programming language, prove it test, prove it example test, programming symbols

About the Employer:
( 2 reviews ) Dnepropetrovsk, Ukraine

Project ID: #1142221

Awarded to:


I can provide the tests for the functions just like previous part. Please check PM.

$250 USD in 9 days
(2 Reviews)