changeset 463 | 0315d9983cd0 |
parent 434 | 8c5804b2f9d2 |
462:34feeb53c0ba | 463:0315d9983cd0 |
---|---|
208 then |
208 then |
209 #echo -e "For testing needs to take 10 seconds or less to execute: " >> $out |
209 #echo -e "For testing needs to take 10 seconds or less to execute: " >> $out |
210 echo -e " ordered_moves(8, List((3,4), (3,2)), (1,3)) == List((0,1), (0,5), (2,1), (2,5))" >> $out |
210 echo -e " ordered_moves(8, List((3,4), (3,2)), (1,3)) == List((0,1), (0,5), (2,1), (2,5))" >> $out |
211 echo -e " ordered_moves(8, List((4,0)), (0,0)) == List((2,1), (1,2))" >> $out |
211 echo -e " ordered_moves(8, List((4,0)), (0,0)) == List((2,1), (1,2))" >> $out |
212 echo -e " ordered_moves(8, List((0,4)), (0,0)) == List((1,2), (2,1))" >> $out |
212 echo -e " ordered_moves(8, List((0,4)), (0,0)) == List((1,2), (2,1))" >> $out |
213 |
213 |
214 if (scala_assert "knight2.scala" "knight_test6.scala") |
214 if (scala_assert "knight2.scala" "knight_test6.scala") |
215 then |
215 then |
216 echo -e " --> success" >> $out |
216 echo -e " --> success" >> $out |
217 else |
217 else |
218 echo -e " --> \n ONE TEST FAILED\n" >> $out |
218 echo -e " --> \n ONE TEST FAILED\n" >> $out |
289 |
289 |
290 if [ $tsts3 -eq 0 ] |
290 if [ $tsts3 -eq 0 ] |
291 then |
291 then |
292 #echo -e "For testing needs to take 10 seconds or less to execute: " >> $out |
292 #echo -e "For testing needs to take 10 seconds or less to execute: " >> $out |
293 echo -e " tour_on_mega_board(70, List((0,0))) found and correct?" >> $out |
293 echo -e " tour_on_mega_board(70, List((0,0))) found and correct?" >> $out |
294 |
294 START=$(date +%s) |
295 if (scala_assert "knight3.scala" "knight_test9.scala") |
295 if (scala_assert "knight3.scala" "knight_test9.scala") |
296 then |
296 then |
297 echo -e " --> success" >> $out |
297 END=$(date +%s) |
298 else |
298 DIFF=$(( $END - $START )) |
299 echo " This test ran for $DIFF seconds." >> $out |
|
300 echo -e " --> success" >> $out |
|
301 else |
|
302 END=$(date +%s) |
|
303 DIFF=$(( $END - $START )) |
|
304 echo " This test ran for $DIFF seconds." >> $out |
|
299 echo -e " --> \n ONE TEST FAILED\n" >> $out |
305 echo -e " --> \n ONE TEST FAILED\n" >> $out |
300 fi |
306 fi |
301 fi |
307 fi |
302 |
308 |
303 |
309 |