equal
deleted
inserted
replaced
33 |
33 |
34 echo -e "postfix.scala runs?" >> $out |
34 echo -e "postfix.scala runs?" >> $out |
35 |
35 |
36 if (scala_compile postfix.scala) |
36 if (scala_compile postfix.scala) |
37 then |
37 then |
38 echo -e " --> yes" >> $out |
38 echo -e " --> passed" >> $out |
39 tsts=$(( 0 )) |
39 tsts=$(( 0 )) |
40 else |
40 else |
41 echo -e " --> SCALA DID NOT RUN postfix.scala\n" >> $out |
41 echo -e " --> SCALA DID NOT RUN postfix.scala\n" >> $out |
42 tsts=$(( 1 )) |
42 tsts=$(( 1 )) |
43 fi |
43 fi |
52 if (scala_vars postfix.scala) |
52 if (scala_vars postfix.scala) |
53 then |
53 then |
54 echo -e " --> FAIL (make triple-sure your program conforms to the required format)" >> $out |
54 echo -e " --> FAIL (make triple-sure your program conforms to the required format)" >> $out |
55 tsts=$(( 1 )) |
55 tsts=$(( 1 )) |
56 else |
56 else |
57 echo -e " --> success" >> $out |
57 echo -e " --> passed" >> $out |
58 tsts=$(( 0 )) |
58 tsts=$(( 0 )) |
59 fi |
59 fi |
60 fi |
60 fi |
61 |
61 |
62 |
62 |
105 |
105 |
106 echo -e "postfix2.scala runs?" >> $out |
106 echo -e "postfix2.scala runs?" >> $out |
107 |
107 |
108 if (scala_compile postfix2.scala) |
108 if (scala_compile postfix2.scala) |
109 then |
109 then |
110 echo -e " --> yes" >> $out |
110 echo -e " --> passed" >> $out |
111 tsts1=$(( 0 )) |
111 tsts1=$(( 0 )) |
112 else |
112 else |
113 echo -e " --> SCALA DID NOT RUN postfix2.scala\n" >> $out |
113 echo -e " --> SCALA DID NOT RUN postfix2.scala\n" >> $out |
114 tsts1=$(( 1 )) |
114 tsts1=$(( 1 )) |
115 fi |
115 fi |
124 if (scala_vars postfix2.scala) |
124 if (scala_vars postfix2.scala) |
125 then |
125 then |
126 echo -e " --> FAIL (make triple-sure your program conforms to the required format)" >> $out |
126 echo -e " --> FAIL (make triple-sure your program conforms to the required format)" >> $out |
127 tsts1=$(( 1 )) |
127 tsts1=$(( 1 )) |
128 else |
128 else |
129 echo -e " --> success" >> $out |
129 echo -e " --> passed" >> $out |
130 tsts1=$(( 0 )) |
130 tsts1=$(( 0 )) |
131 fi |
131 fi |
132 fi |
132 fi |
133 |
133 |
134 |
134 |