File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
modules/rostests/apitests/crt Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -50,4 +50,17 @@ START_TEST(_wcsicmp)
5050#else
5151 EndSeh ((is_reactos () || _winver >= _WIN32_WINNT_VISTA ) ? STATUS_SUCCESS : STATUS_ACCESS_VIOLATION );
5252#endif
53+
54+ ok_eq_int (p_wcsicmp (L"abc" , L"ABC" ), 0 );
55+ ok_eq_int (p_wcsicmp (L"ABC" , L"abc" ), 0 );
56+ ok_eq_int (p_wcsicmp (L"abc" , L"abd" ), -1 );
57+ ok_eq_int (p_wcsicmp (L"abd" , L"abc" ), 1 );
58+ ok_eq_int (p_wcsicmp (L"abcd" , L"ABC" ), 'd' );
59+ ok_eq_int (p_wcsicmp (L"ABC" , L"abcd" ), - 'd' );
60+ ok_eq_int (p_wcsicmp (L"ab" , L"A " ), 'b' - ' ' );
61+ ok_eq_int (p_wcsicmp (L"AB" , L"a " ), 'b' - ' ' );
62+ ok_eq_int (p_wcsicmp (L"a " , L"aB" ), ' ' - 'b' );
63+
64+ /* This shows that _wcsicmp does a lowercase comparison. */
65+ ok_eq_int (p_wcsicmp (L"_" , L"a" ), '_' - 'a' );
5366}
You can’t perform that action at this time.
0 commit comments