Changeset 3232 for proto


Ignore:
Timestamp:
May 29, 2013, 3:55:11 PM (6 years ago)
Author:
ksherdy
Message:

Fixed combine advances tests. Simplification, PabloS builtins must be fully qualified, i.e. pablo.BUILTIN_CALL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/input/test/visitors/CombineAdvances/combineAdvances.pablos

    r3175 r3232  
    66        temp = pablo.Advance(X);                       
    77       
    8         temp = Advance(X,2);                            // Expected result
    9         temp = Advance(Advance(X));             // Translates to expected result
    10 
    11         temp = Advance(X,2);                             
    12         temp = Advance(pablo.Advance(X));       
    13        
    14         temp = Advance(X,3);
    15         temp = Advance(Advance(X,2));
    16        
    17         temp = Advance(X,3);
    18         temp = Advance(pablo.Advance(X,2));
    19 
    20         temp = pablo.Advance(X,2);
    21         temp = pablo.Advance(Advance(X));
    22        
    23         temp = pablo.Advance(X,2);
    24         temp = pablo.Advance(pablo.Advance(X));
    25        
    26         temp = pablo.Advance(X,3);
    27         temp = pablo.Advance(Advance(X,2));
    28        
    29         temp = Advance(X,3);
    30         temp = Advance(pablo.Advance(X,2));
    31 
    32         temp = Advance(X,3);
    33         temp = Advance(Advance(X),2);
    34        
    35         temp = Advance(X,3);
    36         temp = Advance(pablo.Advance(X),2);
    37        
    38         temp = Advance(X,4);
    39         temp = Advance(Advance(X,2),2);
    40        
    41         temp = Advance(X,4);
    42         temp = Advance(pablo.Advance(X,2),2);
     8        temp = pablo.Advance(X,2);                                              // Expected result
     9        temp = pablo.Advance(pablo.Advance(X));                 // Translates to expected result
    4310
    4411        temp = pablo.Advance(X,3);
    45         temp = pablo.Advance(Advance(X),2);
    46        
     12        temp = pablo.Advance(pablo.Advance(X,2));
     13
    4714        temp = pablo.Advance(X,3);
    4815        temp = pablo.Advance(pablo.Advance(X),2);
    4916       
    5017        temp = pablo.Advance(X,4);
    51         temp = pablo.Advance(Advance(X,2),2);   
    52        
    53         temp = pablo.Advance(X,4);
    5418        temp = pablo.Advance(pablo.Advance(X,2),2);
    5519       
    56         temp = Advance(X,3);
    57         temp = Advance(Advance(Advance(X)));
     20        temp = pablo.Advance(X,3);
     21        temp = pablo.Advance(pablo.Advance(pablo.Advance(X)));
    5822               
    5923}
Note: See TracChangeset for help on using the changeset viewer.