Ignore:
Timestamp:
Apr 2, 2025, 11:14:44 PM (10 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
c5e1aa6
Parents:
ee70ff5
Message:

update test programs with new length name "len"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/collections/string-gc.cfa

    ree70ff5 r9aa8dcc  
    1212
    1313void 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));
    1515}
    1616#define PRT_STR_REP(s) prtStrRep( #s, s )
     
    2929    // x and padder overlap
    3030    sout | "--A";
    31     sout | "length of x:" | size(x);
     31    sout | "length of x:" | len(x);
    3232    PRT_STR_REP(padder);
    3333    PRT_STR_REP(x);
     
    3939    // x and padder still overlap; now x is huge
    4040    sout | "--B";
    41     sout | "length of x:" | size(x);
     41    sout | "length of x:" | len(x);
    4242    PRT_STR_REP(padder);
    4343    PRT_STR_REP(x);
     
    5353
    5454    // want the next edit to straddle the bound
    55     assert( bytesRemaining() < size(padder) );
     55    assert( bytesRemaining() < len(padder) );
    5656
    5757    sout | "--D";
Note: See TracChangeset for help on using the changeset viewer.