Changeset 14008 in vbox
- Timestamp:
- Nov 10, 2008 1:12:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstUtf8.cpp
r13927 r14008 805 805 void TstRTStrXCmp(void) 806 806 { 807 RTPrintf("tstUtf8: TEST INGRTStr*Cmp\n");807 RTPrintf("tstUtf8: TEST 4 - RTStr*Cmp\n"); 808 808 #define CHECK_DIFF(expr, op) \ 809 809 do \ … … 859 859 CHECK_DIFF(RTStrICmp("abcdef", "abcdeg"), < ); 860 860 861 CHECK_DIFF(RTStrICmp("abcdeF", "abcdef"), == 861 CHECK_DIFF(RTStrICmp("abcdeF", "abcdef"), ==); 862 862 CHECK_DIFF(RTStrICmp("abcdef", "abcdeF"), ==); 863 863 CHECK_DIFF(RTStrICmp("ABCDEF", "abcdef"), ==); … … 873 873 CHECK_DIFF(RTStrNICmp("", NULL, RTSTR_MAX), > ); 874 874 CHECK_DIFF(RTStrNICmp("", "", RTSTR_MAX), == ); 875 CHECK_DIFF(RTStrNICmp(NULL, NULL, 0), == ); 876 CHECK_DIFF(RTStrNICmp(NULL, "", 0), == ); 877 CHECK_DIFF(RTStrNICmp("", NULL, 0), == ); 878 CHECK_DIFF(RTStrNICmp("", "", 0), == ); 875 879 CHECK_DIFF(RTStrNICmp("abcdef", "abcdef", RTSTR_MAX), == ); 876 880 CHECK_DIFF(RTStrNICmp("abcdef", "abcde", RTSTR_MAX), > ); … … 879 883 CHECK_DIFF(RTStrNICmp("abcdef", "abcdeg", RTSTR_MAX), < ); 880 884 881 CHECK_DIFF(RTStrNICmp("abcdeF", "abcdef", RTSTR_MAX), == 885 CHECK_DIFF(RTStrNICmp("abcdeF", "abcdef", RTSTR_MAX), ==); 882 886 CHECK_DIFF(RTStrNICmp("abcdef", "abcdeF", RTSTR_MAX), ==); 883 887 CHECK_DIFF(RTStrNICmp("ABCDEF", "abcdef", RTSTR_MAX), ==); … … 889 893 CHECK_DIFF(RTStrNICmp("ABCDEF", "fedcba", 0), ==); 890 894 CHECK_DIFF(RTStrNICmp("AbCdEg", "aBcDeF", 5), ==); 895 CHECK_DIFF(RTStrNICmp("AbCdEf", "aBcDeF", 5), ==); 896 CHECK_DIFF(RTStrNICmp("AbCdE", "aBcDe", 5), ==); 897 CHECK_DIFF(RTStrNICmp("AbCdE", "aBcDeF", 5), ==); 898 CHECK_DIFF(RTStrNICmp("AbCdEf", "aBcDe", 5), ==); 891 899 CHECK_DIFF(RTStrNICmp("AbCdEg", "aBcDeF", 6), > ); 892 900 CHECK_DIFF(RTStrNICmp("AbCdEG", "aBcDef", 6), > ); /* diff performed on the lower case cp. */
Note:
See TracChangeset
for help on using the changeset viewer.