diff -r 7acbef680bef -r f5c0749858fd main_testing4/knight_test.sh --- a/main_testing4/knight_test.sh Sun Jan 15 10:58:13 2023 +0000 +++ b/main_testing4/knight_test.sh Sat Mar 11 22:01:53 2023 +0000 @@ -210,7 +210,7 @@ echo -e " ordered_moves(8, List((3,4), (3,2)), (1,3)) == List((0,1), (0,5), (2,1), (2,5))" >> $out echo -e " ordered_moves(8, List((4,0)), (0,0)) == List((2,1), (1,2))" >> $out echo -e " ordered_moves(8, List((0,4)), (0,0)) == List((1,2), (2,1))" >> $out - + if (scala_assert "knight2.scala" "knight_test6.scala") then echo -e " --> success" >> $out @@ -291,11 +291,17 @@ then #echo -e "For testing needs to take 10 seconds or less to execute: " >> $out echo -e " tour_on_mega_board(70, List((0,0))) found and correct?" >> $out - + START=$(date +%s) if (scala_assert "knight3.scala" "knight_test9.scala") then + END=$(date +%s) + DIFF=$(( $END - $START )) + echo " This test ran for $DIFF seconds." >> $out echo -e " --> success" >> $out else + END=$(date +%s) + DIFF=$(( $END - $START )) + echo " This test ran for $DIFF seconds." >> $out echo -e " --> \n ONE TEST FAILED\n" >> $out fi fi