203 |
203 |
204 if [ $tsts -eq 0 ] |
204 if [ $tsts -eq 0 ] |
205 then |
205 then |
206 echo "Task 7:" >> $out |
206 echo "Task 7:" >> $out |
207 echo " val secrets = ..." >> $out |
207 echo " val secrets = ..." >> $out |
208 echo " ranked_evil(secrets, \"beats\") == List(\"orlon\") || ... == List(\"fuzzy\")" >> $out |
208 echo " ranked_evil(secrets, \"beats\") == List(\"fuzzy\")" >> $out |
209 echo " ranked_evil(secrets, \"vitae\") == List(\"sools\", \"solos\") || ... == List(\"fuzzy\")" >> $out |
209 echo " ranked_evil(secrets, \"vitae\") == List(\"fuzzy\")" >> $out |
210 echo " ranked_evil(secrets, \"bento\") == List(\"assai\") || ... == List(\"fuzzy\")" >> $out |
210 echo " ranked_evil(secrets, \"bento\") == List(\"fuzzy\")" >> $out |
211 echo " ranked_evil(secrets, \"belts\") == List(\"anana\") || ... == List(\"fuzzy\")" >> $out |
211 echo " ranked_evil(secrets, \"belts\") == List(\"fuzzy\")" >> $out |
212 |
212 echo " " >> $out |
|
213 echo " ranked_evil(secrets, \"abbey\") == List(\"whizz\")" >> $out |
|
214 echo " ranked_evil(secrets, \"afear\") == List(\"buzzy\")" >> $out |
|
215 echo " ranked_evil(secrets, \"zincy\") == List(\"jugum\")" >> $out |
|
216 echo " ranked_evil(secrets, \"zippy\") == List(\"chuff\")" >> $out |
|
217 START=$(date +%s) |
213 if (scala_assert "wordle.scala" "wordle_test7.scala") |
218 if (scala_assert "wordle.scala" "wordle_test7.scala") |
214 then |
219 then |
215 echo -e " --> success\n" >> $out |
220 END=$(date +%s) |
216 else |
221 DIFF=$(( $END - $START )) |
217 echo -e " --> one of the tests failed\n" >> $out |
222 echo " This test ran for $DIFF seconds." >> $out |
218 fi |
223 echo -e " --> success\n" >> $out |
219 fi |
224 else |
220 |
225 END=$(date +%s) |
221 |
226 DIFF=$(( $END - $START )) |
222 |
227 echo " This test ran for $DIFF seconds." >> $out |
223 |
228 echo -e " --> one of the tests failed\n" >> $out |
|
229 fi |
|
230 fi |
|
231 |
|
232 |
|
233 |
|
234 |