90 ### wordle tests: Task 2 (0.25%) |
90 ### wordle tests: Task 2 (0.25%) |
91 |
91 |
92 if [ $tsts -eq 0 ] |
92 if [ $tsts -eq 0 ] |
93 then |
93 then |
94 echo "Task 2:" >> $out |
94 echo "Task 2:" >> $out |
95 echo " removeOne(List(1,2,3,2,1), 3) == List(1, 2, 2, 1)" >> $out |
95 echo " removeN(List(1,2,3,2,1), 3, 1) == List(1, 2, 2, 1)" >> $out |
96 echo " removeOne(List(1,2,3,2,1), 2) == List(1, 3, 2, 1)" >> $out |
96 echo " removeN(List(1,2,3,2,1), 2, 1) == List(1, 3, 2, 1)" >> $out |
97 echo " removeOne(List(1,2,3,2,1), 1) == List(2, 3, 2, 1)" >> $out |
97 echo " removeN(List(1,2,3,2,1), 1, 1) == List(2, 3, 2, 1)" >> $out |
98 echo " removeOne(List(1,2,3,2,1), 0) == List(1, 2, 3, 2, 1)" >> $out |
98 echo " removeN(List(1,2,3,2,1), 0, 1) == List(1, 2, 3, 2, 1)" >> $out |
99 echo " removeOne(List(\"a\", \"b\", \"b\"), \"b\") == List(\"a\", \"b\")" >> $out |
99 echo " removeN(List(\"a\", \"b\", \"b\"), \"b\", 1) == List(\"a\", \"b\")" >> $out |
|
100 echo " removeN(List(\"b\", \"a\", \"b\", \"b\"), \"b\", 2) == List(\"a\", \"b\")" >> $out |
|
101 echo " removeN(List(\"b\", \"a\", \"b\"), \"a\", 2) == List(\"b\", \"b\")" >> $out |
100 |
102 |
101 if (scala_assert "wordle.scala" "wordle_test2.scala") |
103 if (scala_assert "wordle.scala" "wordle_test2.scala") |
102 then |
104 then |
103 echo -e " --> success\n" >> $out |
105 echo -e " --> success\n" >> $out |
104 else |
106 else |