equal
  deleted
  inserted
  replaced
  
    
    
|      3  |      3  | 
|      4 out=${1:-output} |      4 out=${1:-output} | 
|      5  |      5  | 
|      6 echo -e "" > $out |      6 echo -e "" > $out | 
|      7  |      7  | 
|      8 echo -e "Below is the feedback for your submission of CW 8, Part 1 and 2." >> $out |      8 echo -e "Below is the feedback for your submission of CW 8, Preliminary Part" >> $out | 
|      9 echo -e "" >> $out |      9 echo -e "" >> $out | 
|     10  |     10  | 
|     11  |     11  | 
|     12 # compilation tests |     12 # compilation tests | 
|     13  |     13  | 
|     40  |     40  | 
|     41 echo -e "knight1.scala does not contain vars, returns etc?" >> $out |     41 echo -e "knight1.scala does not contain vars, returns etc?" >> $out | 
|     42  |     42  | 
|     43 if (scala_vars knight1.scala) |     43 if (scala_vars knight1.scala) | 
|     44 then |     44 then | 
|     45   echo -e "  --> fail (make triple-sure your program conforms to the required format)" >> $out   |     45   echo -e "  --> FAIL (make triple-sure your program conforms to the required format)" >> $out   | 
|     46   tsts0=$(( 0 )) |     46   tsts0=$(( 0 )) | 
|     47 else |     47 else | 
|     48   echo -e "  --> success" >> $out |     48   echo -e "  --> success" >> $out | 
|     49   tsts0=$(( 0 ))  |     49   tsts0=$(( 0 ))  | 
|     50 fi |     50 fi |