Changeset 21409 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Jul 8, 2009 3:36:59 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49785
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstUtf8.cpp
r21404 r21409 949 949 } while (0) 950 950 951 ministring empty;951 iprt::MiniString empty; 952 952 CHECK( (empty.length() == 0) ); 953 953 CHECK( (empty.capacity() == 0) ); 954 954 955 ministring sixbytes("12345");955 iprt::MiniString sixbytes("12345"); 956 956 CHECK( (sixbytes.length() == 5) ); 957 957 CHECK( (sixbytes.capacity() == 6) ); … … 970 970 CHECK( (sixbytes.capacity() == 7) ); 971 971 972 ministring morebytes("tobereplaced");972 iprt::MiniString morebytes("tobereplaced"); 973 973 morebytes = "newstring "; 974 974 morebytes.append(sixbytes); … … 976 976 CHECK_DUMP( (morebytes == "newstring 123456"), morebytes.c_str() ); 977 977 978 ministring third(morebytes);978 iprt::MiniString third(morebytes); 979 979 third.reserve(100 * 1024); // 100 KB 980 980 CHECK_DUMP( (third == "newstring 123456"), morebytes.c_str() ); … … 982 982 CHECK( (third.length() == morebytes.length()) ); // must not have changed 983 983 984 ministring copy1(morebytes);985 ministring copy2 = morebytes;984 iprt::MiniString copy1(morebytes); 985 iprt::MiniString copy2 = morebytes; 986 986 CHECK( (copy1 == copy2) ); 987 987 … … 992 992 CHECK( (copy1.length() == 0) ); 993 993 994 CHECK( ( ministring("abc") < ministring("def")) );995 CHECK( ( ministring("abc") != ministring("def")) );996 CHECK_DUMP_I( ( ministring("def") > ministring("abc")) );994 CHECK( (iprt::MiniString("abc") < iprt::MiniString("def")) ); 995 CHECK( (iprt::MiniString("abc") != iprt::MiniString("def")) ); 996 CHECK_DUMP_I( (iprt::MiniString("def") > iprt::MiniString("abc")) ); 997 997 998 998 copy2.setNull();
Note:
See TracChangeset
for help on using the changeset viewer.