marking1/collatz_test.sh
changeset 281 87b9e3e2c1a7
parent 267 9e0216756771
child 343 c8fcc0e0a57f
equal deleted inserted replaced
280:a057dc4457fc 281:87b9e3e2c1a7
     9 echo "" > $out
     9 echo "" > $out
    10 
    10 
    11 echo `date` >> $out
    11 echo `date` >> $out
    12 echo >> $out
    12 echo >> $out
    13 echo "Below is the feedback and provisional marks for your submission" >> $out
    13 echo "Below is the feedback and provisional marks for your submission" >> $out
    14 echo "for the Basic Part of Assignment 6.  Please note all marks are provisional until" >> $out
    14 echo "for the Preliminary Part of Assignment 6.  Please note all marks are provisional until" >> $out
    15 echo "ratified by the assessment board -- this is not an official" >> $out
    15 echo "ratified by the assessment board -- this is not an official" >> $out
    16 echo "results transcript." >> $out
    16 echo "results transcript." >> $out
    17 echo "" >> $out
    17 echo "" >> $out
    18 
    18 
    19 echo "The feedback for your submission for collatz.scala" >> $out
    19 echo "The feedback for your submission for collatz.scala" >> $out
    29 }
    29 }
    30 
    30 
    31 # functional tests
    31 # functional tests
    32 
    32 
    33 function scala_assert {
    33 function scala_assert {
    34   (ulimit -t 60; JAVA_OPTS="-Xmx1g" scala -i "$1" "$2" -e "" 2> /dev/null 1> /dev/null)
    34   (ulimit -t 60; JAVA_OPTS="-Xmx1g" scala -i "$1" -- "$2" 2> /dev/null 1> /dev/null)
    35 }
    35 }
    36 
    36 
    37 # purity test
    37 # purity test
    38 
    38 
    39 function scala_vars {
    39 function scala_vars {