Changeset 45241 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Mar 28, 2013 4:25:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTStrAlloc.cpp
r33285 r45241 190 190 /* RTStrAAppendExN / RTStrAAppendExNV */ 191 191 psz = NULL; 192 RTTESTI_CHECK_RC(RTStrAAppendExN(&psz, 5, "a", 1, "bc", 1, "cdefg", RTSTR_MAX, "hijkl",2, "jklmnopqrstuvwxyz", RTSTR_MAX), VINF_SUCCESS);192 RTTESTI_CHECK_RC(RTStrAAppendExN(&psz, 5, "a", (size_t)1, "bc", (size_t)1, "cdefg", RTSTR_MAX, "hijkl", (size_t)2, "jklmnopqrstuvwxyz", RTSTR_MAX), VINF_SUCCESS); 193 193 RTTESTI_CHECK(!RTStrCmp(psz, "abcdefghijklmnopqrstuvwxyz")); 194 194 RTTESTI_CHECK_RC(RTStrAAppendExN(&psz, 0), VINF_SUCCESS); 195 195 RTTESTI_CHECK(!RTStrCmp(psz, "abcdefghijklmnopqrstuvwxyz")); 196 RTTESTI_CHECK_RC(RTStrAAppendExN(&psz, 2, NULL, 0, "",0), VINF_SUCCESS);197 RTTESTI_CHECK(!RTStrCmp(psz, "abcdefghijklmnopqrstuvwxyz")); 198 RTTESTI_CHECK_RC(RTStrAAppendExN(&psz, 1, "-", 1), VINF_SUCCESS);196 RTTESTI_CHECK_RC(RTStrAAppendExN(&psz, 2, NULL, (size_t)0, "", (size_t)0), VINF_SUCCESS); 197 RTTESTI_CHECK(!RTStrCmp(psz, "abcdefghijklmnopqrstuvwxyz")); 198 RTTESTI_CHECK_RC(RTStrAAppendExN(&psz, 1, "-", (size_t)1), VINF_SUCCESS); 199 199 RTTESTI_CHECK(!RTStrCmp(psz, "abcdefghijklmnopqrstuvwxyz-")); 200 200 RTStrFree(psz);
Note:
See TracChangeset
for help on using the changeset viewer.