equal
deleted
inserted
replaced
35 |
35 |
36 echo -e "collatz.scala runs?" >> $out |
36 echo -e "collatz.scala runs?" >> $out |
37 |
37 |
38 if (scala_compile collatz.scala) |
38 if (scala_compile collatz.scala) |
39 then |
39 then |
40 echo -e " --> success" >> $out |
40 echo -e " --> passed" >> $out |
41 tsts=$(( 0 )) |
41 tsts=$(( 0 )) |
42 else |
42 else |
43 echo -e " --> SCALA DID NOT RUN collatz.scala\n" >> $out |
43 echo -e " --> SCALA DID NOT RUN collatz.scala\n" >> $out |
44 tsts=$(( 1 )) |
44 tsts=$(( 1 )) |
45 fi |
45 fi |
55 if (scala_vars collatz.scala) |
55 if (scala_vars collatz.scala) |
56 then |
56 then |
57 echo -e " --> FAIL (make triple-sure your program conforms to the required format)\n" >> $out |
57 echo -e " --> FAIL (make triple-sure your program conforms to the required format)\n" >> $out |
58 tsts=$(( 1 )) |
58 tsts=$(( 1 )) |
59 else |
59 else |
60 echo -e " --> success" >> $out |
60 echo -e " --> passed" >> $out |
61 tsts=$(( 0 )) |
61 tsts=$(( 0 )) |
62 fi |
62 fi |
63 fi |
63 fi |
64 |
64 |
65 |
65 |