Changeset 19de7864 for tests


Ignore:
Timestamp:
Dec 17, 2020, 12:28:03 PM (10 months ago)
Author:
Colby Alexander Parsons <caparsons@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
7522692
Parents:
28e88d7
Message:

removed listed requirement for collections since it was redundant

Location:
tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tests/multi_list.cfa

    r28e88d7 r19de7864  
    2727}
    2828
    29 bool listed( TaskDL * n ) {
    30         return Next( (Colable *)n ) != 0p;
    31 }
    32 
    3329struct TaskSL {
    3430        inline Colable;
     
    4541TaskSL *& Next( TaskSL * n ) {
    4642        return (TaskSL *)Next( (Colable *)n );
    47 }
    48 
    49 bool listed( TaskSL * n ) {
    50         return Next( (Colable *)n ) != 0p;
    5143}
    5244
  • tests/queue.cfa

    r28e88d7 r19de7864  
    1616        Fred *& Next( Fred * n ) {
    1717                return (Fred *)Next( (Colable *)n );
    18         }
    19 
    20         bool listed( Fred * n ) {
    21                 return Next( (Colable *)n ) != 0p;
    2218        }
    2319
     
    7672
    7773        Mary *& Next( Mary * n ) {
    78                 return (Mary *)Next( (Colable *)n );
    79         }
    80 
    81         bool listed( Mary * n ) {
    82                 return Next( (Colable *)n ) != 0p;
     74                return (Mary *)Next( (Fred *)n );
    8375        }
    8476
  • tests/sequence.cfa

    r28e88d7 r19de7864  
    2121        Fred *& Next( Fred * n ) {
    2222                return (Fred *)Next( (Colable *)n );
    23         }
    24 
    25         bool listed( Fred * n ) {
    26                 return Next( (Colable *)n ) != 0p;
    2723        }
    2824
     
    8985
    9086        Mary *& Back( Mary * n ) {
    91                 return (Mary *)Back( (Seqable *)n );
     87                return (Mary *)Back( (Fred *)n );
    9288        }
    9389
    9490        Mary *& Next( Mary * n ) {
    95                 return (Mary *)Next( (Colable *)n );
    96         }
    97 
    98         bool listed( Mary * n ) {
    99                 return Next( (Colable *)n ) != 0p;
     91                return (Mary *)Next( (Fred *)n );
    10092        }
    10193
  • tests/stack.cfa

    r28e88d7 r19de7864  
    1616        Fred *& Next( Fred * n ) {
    1717                return (Fred *)Next( (Colable *)n );
    18         }
    19 
    20         bool listed( Fred * n ) {
    21                 return Next( (Colable *)n ) != 0p;
    2218        }
    2319
     
    7672
    7773        Mary *& Next( Mary * n ) {
    78                 return (Mary *)Next( (Colable *)n );
    79         }
    80 
    81         bool listed( Mary * n ) {
    82                 return Next( (Colable *)n ) != 0p;
     74                return (Mary *)Next( (Fred *)n );
    8375        }
    8476
Note: See TracChangeset for help on using the changeset viewer.