--- a/main_testing2/wordle_test.sh Sun Jan 15 10:58:13 2023 +0000
+++ b/main_testing2/wordle_test.sh Sat Mar 11 22:01:53 2023 +0000
@@ -205,15 +205,26 @@
then
echo "Task 7:" >> $out
echo " val secrets = ..." >> $out
- echo " ranked_evil(secrets, \"beats\") == List(\"orlon\") || ... == List(\"fuzzy\")" >> $out
- echo " ranked_evil(secrets, \"vitae\") == List(\"sools\", \"solos\") || ... == List(\"fuzzy\")" >> $out
- echo " ranked_evil(secrets, \"bento\") == List(\"assai\") || ... == List(\"fuzzy\")" >> $out
- echo " ranked_evil(secrets, \"belts\") == List(\"anana\") || ... == List(\"fuzzy\")" >> $out
-
+ echo " ranked_evil(secrets, \"beats\") == List(\"fuzzy\")" >> $out
+ echo " ranked_evil(secrets, \"vitae\") == List(\"fuzzy\")" >> $out
+ echo " ranked_evil(secrets, \"bento\") == List(\"fuzzy\")" >> $out
+ echo " ranked_evil(secrets, \"belts\") == List(\"fuzzy\")" >> $out
+ echo " " >> $out
+ echo " ranked_evil(secrets, \"abbey\") == List(\"whizz\")" >> $out
+ echo " ranked_evil(secrets, \"afear\") == List(\"buzzy\")" >> $out
+ echo " ranked_evil(secrets, \"zincy\") == List(\"jugum\")" >> $out
+ echo " ranked_evil(secrets, \"zippy\") == List(\"chuff\")" >> $out
+ START=$(date +%s)
if (scala_assert "wordle.scala" "wordle_test7.scala")
then
+ END=$(date +%s)
+ DIFF=$(( $END - $START ))
+ echo " This test ran for $DIFF seconds." >> $out
echo -e " --> success\n" >> $out
else
+ END=$(date +%s)
+ DIFF=$(( $END - $START ))
+ echo " This test ran for $DIFF seconds." >> $out
echo -e " --> one of the tests failed\n" >> $out
fi
fi