main_testing2/wordle_test2.scala
changeset 435 fda7c39f3b6a
child 437 d4d4669ad054
equal deleted inserted replaced
434:8c5804b2f9d2 435:fda7c39f3b6a
       
     1 
       
     2 import Resit._
       
     3 
       
     4 
       
     5 assert(removeOne(List(1,2,3,2,1), 3) == List(1, 2, 2, 1))
       
     6 assert(removeOne(List(1,2,3,2,1), 2) == List(1, 3, 2, 1))
       
     7 assert(removeOne(List(1,2,3,2,1), 1) == List(2, 3, 2, 1))
       
     8 assert(removeOne(List(1,2,3,2,1), 0) == List(1, 2, 3, 2, 1))
       
     9 assert(removeOne(List("a", "b", "b"), "b") == List("a", "b"))