testing1/collatz_test.sh
changeset 343 c8fcc0e0a57f
parent 329 8a34b2ebc8cc
--- a/testing1/collatz_test.sh	Sat Aug 29 16:05:59 2020 +0100
+++ b/testing1/collatz_test.sh	Tue Oct 13 10:21:21 2020 +0100
@@ -100,3 +100,18 @@
 fi
 
 
+### last-odd tests
+
+if [ $tsts -eq 0 ]
+then
+  echo -e "  last_odd(113) == 85" >> $out
+  echo -e "  last_odd(84) == 21" >> $out
+  echo -e "  last_odd(605) == 341" >> $out
+
+  if (scala_assert "collatz.scala" "collatz_test3.scala") 
+  then
+    echo -e "  --> success" >> $out
+  else
+    echo -e "  --> ONE OF THE TESTS FAILED\n" >> $out
+  fi
+fi