diff -r e4d779587d3f -r 35c75b594459 pre_testing1/collatz_test.sh --- a/pre_testing1/collatz_test.sh Sun Nov 08 13:09:38 2020 +0000 +++ b/pre_testing1/collatz_test.sh Mon Nov 09 14:34:12 2020 +0000 @@ -7,6 +7,7 @@ out=${1:-output} echo -e "" > $out +echo -e "" > c$out echo -e "Below is the feedback for your submission collatz.scala" >> $out echo -e "" >> $out @@ -15,7 +16,7 @@ # compilation tests function scala_compile { - (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -Xprint:parser "$1" 2> c$out 1> c$out) + (ulimit -t 30; JAVA_OPTS="-Xmx1g" scala -Xprint:parser "$1" 2>> $out 1>> $out) } # functional tests @@ -48,10 +49,11 @@ # var, .par return, ListBuffer test # -echo -e "collatz.scala does not contain VARS, RETURNS etc?" >> $out if [ $tsts -eq 0 ] -then +then + echo -e "collatz.scala does not contain VARS, RETURNS etc?" >> $out + if (scala_vars collatz.scala) then echo -e " --> FAIL (make triple-sure your program conforms to the required format)\n" >> $out