source: proto/pablo/input/test/visitors/AdvanceCombiner/advance.pablo @ 2536

Last change on this file since 2536 was 2536, checked in by ksherdy, 7 years ago

Moved test directory.

File size: 1.2 KB
Line 
1function void Test() {
2        var stream temp;
3        var stream X = 0;
4       
5        temp = pablo.Advance(X);                       
6        temp = pablo.Advance(X);                       
7       
8        temp = Advance(X,2);                            // Expected
9        temp = Advance(Advance(X));             // Transform to expected
10       
11        temp = Advance(X,2);                            // Expected
12        temp = Advance(pablo.Advance(X));       // Transform to expected
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);
43
44        temp = pablo.Advance(X,3);
45        temp = pablo.Advance(Advance(X),2);
46       
47        temp = pablo.Advance(X,3);
48        temp = pablo.Advance(pablo.Advance(X),2);
49       
50        temp = pablo.Advance(X,4);
51        temp = pablo.Advance(Advance(X,2),2);   
52       
53        temp = pablo.Advance(X,4);
54        temp = pablo.Advance(pablo.Advance(X,2),2);
55       
56        temp = Advance(X,3);
57        temp = Advance(Advance(Advance(X)));
58       
59}
Note: See TracBrowser for help on using the repository browser.