marking1/collatz_test.sh
changeset 212 4bda49ec24da
parent 210 63a1376cbebd
child 261 8997430d9765
equal deleted inserted replaced
211:092e0879a5ae 212:4bda49ec24da
    98   echo "  collatz_max(100) == (118, 97)" | tee -a $out
    98   echo "  collatz_max(100) == (118, 97)" | tee -a $out
    99   echo "  collatz_max(1000) == (178, 871)" | tee -a $out
    99   echo "  collatz_max(1000) == (178, 871)" | tee -a $out
   100   echo "  collatz_max(10000) == (261, 6171)" | tee -a $out
   100   echo "  collatz_max(10000) == (261, 6171)" | tee -a $out
   101   echo "  collatz_max(100000) == (350, 77031)" | tee -a $out
   101   echo "  collatz_max(100000) == (350, 77031)" | tee -a $out
   102   echo "  collatz_max(1000000) == (524, 837799)" | tee -a $out
   102   echo "  collatz_max(1000000) == (524, 837799)" | tee -a $out
   103   echo "  collatz_max(2) == (1, 2) || collatz_max(2) == (0, 1)" | tee -a $out
   103   #  echo "  collatz_max(2) == (1, 2) || collatz_max(2) == (0, 1)" | tee -a $out
       
   104   echo "  collatz_max(2) == (1, 2)" | tee -a $out
   104   echo "  collatz_max(77000) == (339, 52527)" | tee -a $out
   105   echo "  collatz_max(77000) == (339, 52527)" | tee -a $out
   105 
   106 
   106   if (scala_assert "collatz.scala" "collatz_test2.scala") 
   107   if (scala_assert "collatz.scala" "collatz_test2.scala") 
   107   then
   108   then
   108       echo "  --> success" | tee -a $out
   109       echo "  --> success" | tee -a $out