Changeset a8e2215 for tests


Ignore:
Timestamp:
Feb 6, 2025, 2:50:36 PM (2 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
cd28605
Parents:
301e9f7
Message:

Tidy vector-iterator POC and remedy its warnings

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tests/Makefile.am

    r301e9f7 ra8e2215  
    6262# Tests that need investigation from the CFA team about why they require lax wflags.  Goal is to eliminate this list.
    6363WFLAGS_OPT_LAX_TO_INVESTIGATE = \
    64         collections/vector-demo \
    6564        concurrency/actors/dynamic \
    6665        concurrency/actors/executor \
  • TabularUnified tests/collections/vector-demo.cfa

    r301e9f7 ra8e2215  
    138138    assert( v`capacity == 4 && v`length == 4 );
    139139
    140     push_last(v, -100); // v is [0.0, 98.6, 0.1, 0.2, 0.3]; iter at 0.1, but RTP it's not looking at the old memory's 0.1
     140    push_last(v, -100); // v is [0.0, 98.6, 0.1, 0.2, -100]; iter at 0.1, but RTP it's not looking at the old memory's 0.1
    141141
    142142    // that made it bigger
    143143    assert( v`capacity >  5 && v`length == 5 );
    144144
    145     v[2] = -0.1f;  // v is [0.0, 98.6, -0.1, 0.2, 0.3]; iter at -0.1, where only the new memory had that change
     145    v[2] = -0.1f;  // v is [0.0, 98.6, -0.1, 0.2, -100]; iter at -0.1, where only the new memory had that change
    146146
    147147    float val3 = iter`val;
     
    158158
    159159    while( vector_exit(float) it = v`origin; it`moveNext ) {
    160         toPrint *= it;
     160        toPrint *= it;  // wish for ?=?, but it's not working
    161161        printf("loop sees %f\n", toPrint);
    162162    }
     163
     164    // todo: loop a permit
    163165}
    164166
Note: See TracChangeset for help on using the changeset viewer.