Changeset bada452 for tests/collections


Ignore:
Timestamp:
Jan 28, 2025, 4:12:53 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
c699602
Parents:
71ca5b9
Message:

Removed warnings from serveral tests and removed them from the ..._TO_INVESTIGATE list. One test triggered a Cforall warning and a new test to check that has been added. collections/vector-demo has no warnings in its body, but the library it uses does have warnings and will have to move after that is fixed.

Location:
tests/collections
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tests/collections/queue.cfa

    r71ca5b9 rbada452  
    2828        }
    2929        sout | "empty" | nl;
    30        
     30
    3131        for ( i; 10 ) {
    3232                add( fred, *new( 2 * i ) );
     
    4848        }
    4949        sout | nl;
    50        
     50
    5151        for ( i; 10 ) {
    5252                add( fred, *new( 2 * i + 1 ) );
     
    133133                int j;
    134134        };
     135        __attribute__((unused))
    135136        void ?{}( Mary & mary ) { abort(); }
    136137        void ?{}( Mary & mary, int p ) with( mary ) {
     
    150151        }
    151152        sout | "empty" | nl;
    152        
     153
    153154        for ( i; 10 ) {
    154155                add( mary, *new( 2 * i ) );
     
    161162        }
    162163        sout | nl;
    163        
     164
    164165        for ( i; 9 ) {
    165166                delete( &drop( mary ) );
     
    170171        }
    171172        sout | nl;
    172        
     173
    173174        for ( i; 10 ) {
    174175                add( mary, *new( 2 * i + 1 ) );
  • TabularUnified tests/collections/sequence.cfa

    r71ca5b9 rbada452  
    3131        }
    3232        sout | "empty" | nl;
    33        
     33
    3434        for ( i; 10 ) {
    3535                add( fred, *new( 2 * i ) );
     
    5151        }
    5252        sout | nl;
    53        
     53
    5454        for ( i; 10 ) {
    5555                addTail( fred, *new( 2 * i + 1 ) );
     
    156156                int j;
    157157        };
     158        __attribute__((unused))
    158159        void ?{}( Mary & mary ) { abort(); }
    159160        void ?{}( Mary & mary, int p ) with( mary ) {
     
    176177        }
    177178        sout | "empty" | nl;
    178        
     179
    179180        for ( i; 10 ) {
    180181                add( mary, *new( 2 * i ) );
     
    187188        }
    188189        sout | nl;
    189        
     190
    190191        for ( i; 9 ) {
    191192                delete( &dropHead( mary ) );
     
    196197        }
    197198        sout | nl;
    198        
     199
    199200        for ( i; 10 ) {
    200201                addTail( mary, *new( 2 * i + 1 ) );
  • TabularUnified tests/collections/stack.cfa

    r71ca5b9 rbada452  
    2828        }
    2929        sout | "empty" | nl;
    30        
     30
    3131        for ( i; 10 ) {
    3232                push( fred, *new( 2 * i ) );
     
    3939
    4040        sout | head( fred ).i | nl;
    41        
     41
    4242        for ( i; 9 ) {
    4343                delete( &pop( fred ) );
     
    4848        }
    4949        sout | nl;
    50        
     50
    5151        for ( i; 10 ) {
    5252                push( fred, *new( 2 * i + 1 ) );
     
    6767                int j;
    6868        };
     69        __attribute__((unused))
    6970        void ?{}( Mary & mary ) { abort(); }
    7071        void ?{}( Mary & mary, int p ) with( mary ) {
     
    8586        }
    8687        sout | "empty" | nl;
    87        
     88
    8889        for ( i; 10 ) {
    8990                push( mary, *new( 2 * i ) );
     
    9495        }
    9596        sout | nl;
    96        
     97
    9798        for ( i; 9 ) {
    9899                delete( &pop( mary ) );
     
    103104        }
    104105        sout | nl;
    105        
     106
    106107        for ( i; 10 ) {
    107108                push( mary, *new( 2 * i + 1 ) );
  • TabularUnified tests/collections/vector-demo.cfa

    r71ca5b9 rbada452  
    9696      #endif
    9797
     98        // forbid calling a function that returns permit by value
     99      #ifdef TRY_RETURN_PERMIT_BYVAL_1
    98100        // can declare function that returns permit (wish to forbid)
    99101        vector_permit(float) g( vector( float ) & theVec ) {
     
    101103        }
    102104
    103         // forbid calling a function that returns permit by value
    104       #ifdef TRY_RETURN_PERMIT_BYVAL_1
    105105        vector_permit(float) ofG = g( v ); // Unique best alternative includes deleted identifier
    106106      #endif
    107        
     107
    108108        // allow declaration of permit, populating from exit
    109109        vector_exit(float) h( vector( float ) & theVec ) {
Note: See TracChangeset for help on using the changeset viewer.