Changeset ff36907 for tests/loopctrl.cfa


Ignore:
Timestamp:
Aug 9, 2022, 10:21:29 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master, pthread-emulation
Children:
4962741
Parents:
571f220
Message:

update loop-control test and expected output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/loopctrl.cfa

    r571f220 rff36907  
    1010// Created On       : Wed Aug  8 18:32:59 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Aug  9 17:29:08 2022
    13 // Update Count     : 144
     12// Last Modified On : Tue Aug  9 20:42:27 2022
     13// Update Count     : 145
    1414//
    1515
     
    170170        for ( i; start ~ comp ~ inc + 1 ) { sout | i; }         sout | nl | nl;
    171171
     172        for ( i; 10 : j; -5 ~ @ ) { sout | i | j; } sout | nl;
     173        for ( i; 10 : j; -5 -~ @ ) { sout | i | j; } sout | nl;
     174        for ( i; 10 : j; -5 ~ @ ~ 2 ) { sout | i | j; } sout | nl;
     175        for ( i; 10 : j; -5 -~ @ ~ 2 ) { sout | i | j; } sout | nl | nl;
     176
     177        for ( j; -5 ~ @ : i; 10 ) { sout | i | j; } sout | nl;
     178        for ( j; -5 -~ @ : i; 10 ) { sout | i | j; } sout | nl;
     179        for ( j; -5 ~ @ ~ 2 : i; 10 ) { sout | i | j; } sout | nl;
     180        for ( j; -5 -~ @ ~ 2 : i; 10 ) { sout | i | j; } sout | nl | nl;
     181
     182        for ( j; -5 -~ @ ~ 2 : i; 10 : k; 1.5 ~ @ ) { sout | i | j | k; } sout | nl;
     183        for ( j; -5 -~ @ ~ 2 : k; 1.5 ~ @ : i; 10 ) { sout | i | j | k; } sout | nl;
     184        for ( k; 1.5 ~ @ : j; -5 -~ @ ~ 2 : i; 10 ) { sout | i | j | k; } sout | nl;
     185
    172186        for ( S s = (S){0}; s < (S){10,10}; s += (S){1} ) { sout | s; } sout | nl;
    173187        for ( s; (S){10,10} ) { sout | s; } sout | nl;
     
    183197        for ( s; (S){0} -~= (S){10,10} ~ (S){1} ) { sout | s; } sout | nl | nl;
    184198
    185         for ( i; 10 : j; -5 ~ @ ) { sout | i | j; } sout | nl;
    186         for ( i; 10 : j; -5 -~ @ ) { sout | i | j; } sout | nl;
    187         for ( i; 10 : j; -5 ~ @ ~ 2 ) { sout | i | j; } sout | nl;
    188         for ( i; 10 : j; -5 -~ @ ~ 2 ) { sout | i | j; } sout | nl | nl;
    189 
    190         for ( j; -5 ~ @ : i; 10 ) { sout | i | j; } sout | nl;
    191         for ( j; -5 -~ @ : i; 10 ) { sout | i | j; } sout | nl;
    192         for ( j; -5 ~ @ ~ 2 : i; 10 ) { sout | i | j; } sout | nl;
    193         for ( j; -5 -~ @ ~ 2 : i; 10 ) { sout | i | j; } sout | nl | nl;
    194 
    195         for ( j; -5 -~ @ ~ 2 : i; 10 : k; 1.5 ~ @ ) { sout | i | j | k; } sout | nl;
    196         for ( j; -5 -~ @ ~ 2 : k; 1.5 ~ @ : i; 10 ) { sout | i | j | k; } sout | nl;
    197         for ( k; 1.5 ~ @ : j; -5 -~ @ ~ 2 : i; 10 ) { sout | i | j | k; } sout | nl;
    198 
    199199        fred();
    200200}
Note: See TracChangeset for help on using the changeset viewer.