adding a test case
[IRC.git] / Robust / src / Tests / OptionalArgsTest / TestRuntime / TestRuntime1 / Willy.java
1
2
3 task Startup(StartupObject s {initialstate}){
4     
5     Test o = new Test() {A};
6     
7     taskexit(s {!initialstate});
8     
9 }
10
11 task ONE(Test o{A}){
12     o.decrease();
13     System.printString("Inside ONE\n");
14     int i = 100/o.getNumber();
15     taskexit(o {!A, B});
16 }
17
18 task TWO(Test o{B}){
19     System.printString("Inside TWO\n");
20   taskexit(o {!B, C});
21   
22 }
23
24 task THREE(optional Test o{B}){
25 System.printString("Inside THREE\n");
26     taskexit(o {!B, D});
27 }
28
29 task FOUR(Test o{C}){
30 System.printString("Inside FOUR\n");
31     taskexit(o {!C, E});
32     
33     
34 }
35
36 task FIVE(Test o{D}){
37   System.printString("Inside FIVE\n");
38     taskexit(o {!D, F});
39
40 }
41
42 task SIX(optional Test o{E}){
43   System.printString("Inside SIX\n");
44     taskexit(o {!E, G});
45
46 }
47
48 task SEVEN(Test o{F}){
49   System.printString("Inside SEVEN\n");
50     taskexit(o {!F, G});
51
52 }
53
54 task EIGHT(optional Test o{G}){
55   System.printString("Inside EIGHT\n");
56     taskexit(o {!G, H});
57
58 }
59