Changeset 9aa8dcc for tests/collections/string-gc.cfa
- Timestamp:
- Apr 2, 2025, 11:14:44 PM (10 months ago)
- Branches:
- master
- Children:
- c5e1aa6
- Parents:
- ee70ff5
- File:
-
- 1 edited
-
tests/collections/string-gc.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/collections/string-gc.cfa
ree70ff5 r9aa8dcc 12 12 13 13 void prtStrRep(const char * label, string_res & s) { 14 sout | label | "from" | heapOffsetStart(s) | "to" | (heapOffsetStart(s) + size(s));14 sout | label | "from" | heapOffsetStart(s) | "to" | (heapOffsetStart(s) + len(s)); 15 15 } 16 16 #define PRT_STR_REP(s) prtStrRep( #s, s ) … … 29 29 // x and padder overlap 30 30 sout | "--A"; 31 sout | "length of x:" | size(x);31 sout | "length of x:" | len(x); 32 32 PRT_STR_REP(padder); 33 33 PRT_STR_REP(x); … … 39 39 // x and padder still overlap; now x is huge 40 40 sout | "--B"; 41 sout | "length of x:" | size(x);41 sout | "length of x:" | len(x); 42 42 PRT_STR_REP(padder); 43 43 PRT_STR_REP(x); … … 53 53 54 54 // want the next edit to straddle the bound 55 assert( bytesRemaining() < size(padder) );55 assert( bytesRemaining() < len(padder) ); 56 56 57 57 sout | "--D";
Note:
See TracChangeset
for help on using the changeset viewer.