source: proto/pabloj/trunk/input/test/visitors/CombineAdvances/combineAdvances.pablos @ 3232

Last change on this file since 3232 was 3232, checked in by ksherdy, 6 years ago

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

File size: 558 bytes
Line 
1function void Test() {
2        stream<1> temp;
3        stream<1> X = 0;
4       
5        temp = pablo.Advance(X);                       
6        temp = pablo.Advance(X);                       
7       
8        temp = pablo.Advance(X,2);                                              // Expected result
9        temp = pablo.Advance(pablo.Advance(X));                 // Translates to expected result
10
11        temp = pablo.Advance(X,3);
12        temp = pablo.Advance(pablo.Advance(X,2));
13
14        temp = pablo.Advance(X,3);
15        temp = pablo.Advance(pablo.Advance(X),2);
16       
17        temp = pablo.Advance(X,4);
18        temp = pablo.Advance(pablo.Advance(X,2),2);
19       
20        temp = pablo.Advance(X,3);
21        temp = pablo.Advance(pablo.Advance(pablo.Advance(X)));
22               
23}
Note: See TracBrowser for help on using the repository browser.