changeset 435 | fda7c39f3b6a |
child 437 | d4d4669ad054 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_testing2/wordle_test2.scala Wed Nov 09 16:44:16 2022 +0000 @@ -0,0 +1,9 @@ + +import Resit._ + + +assert(removeOne(List(1,2,3,2,1), 3) == List(1, 2, 2, 1)) +assert(removeOne(List(1,2,3,2,1), 2) == List(1, 3, 2, 1)) +assert(removeOne(List(1,2,3,2,1), 1) == List(2, 3, 2, 1)) +assert(removeOne(List(1,2,3,2,1), 0) == List(1, 2, 3, 2, 1)) +assert(removeOne(List("a", "b", "b"), "b") == List("a", "b"))