--- a/main_testing2/wordle_test.sh Wed Nov 09 18:44:40 2022 +0000
+++ b/main_testing2/wordle_test.sh Wed Nov 09 20:45:57 2022 +0000
@@ -92,11 +92,13 @@
if [ $tsts -eq 0 ]
then
echo "Task 2:" >> $out
- echo " removeOne(List(1,2,3,2,1), 3) == List(1, 2, 2, 1)" >> $out
- echo " removeOne(List(1,2,3,2,1), 2) == List(1, 3, 2, 1)" >> $out
- echo " removeOne(List(1,2,3,2,1), 1) == List(2, 3, 2, 1)" >> $out
- echo " removeOne(List(1,2,3,2,1), 0) == List(1, 2, 3, 2, 1)" >> $out
- echo " removeOne(List(\"a\", \"b\", \"b\"), \"b\") == List(\"a\", \"b\")" >> $out
+ echo " removeN(List(1,2,3,2,1), 3, 1) == List(1, 2, 2, 1)" >> $out
+ echo " removeN(List(1,2,3,2,1), 2, 1) == List(1, 3, 2, 1)" >> $out
+ echo " removeN(List(1,2,3,2,1), 1, 1) == List(2, 3, 2, 1)" >> $out
+ echo " removeN(List(1,2,3,2,1), 0, 1) == List(1, 2, 3, 2, 1)" >> $out
+ echo " removeN(List(\"a\", \"b\", \"b\"), \"b\", 1) == List(\"a\", \"b\")" >> $out
+ echo " removeN(List(\"b\", \"a\", \"b\", \"b\"), \"b\", 2) == List(\"a\", \"b\")" >> $out
+ echo " removeN(List(\"b\", \"a\", \"b\"), \"a\", 2) == List(\"b\", \"b\")" >> $out
if (scala_assert "wordle.scala" "wordle_test2.scala")
then