| author | Christian Urban <christian.urban@kcl.ac.uk> | 
| Wed, 09 Nov 2022 18:44:40 +0000 | |
| changeset 435 | 5d06cbea2000 | 
| parent 434 | 1eb11d787af7 | 
| child 436 | 2f17f233cddc | 
| permissions | -rw-r--r-- | 
| 432 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 1 | |
| 434 | 2 | import M2._ | 
| 432 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 3 | |
| 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 4 | |
| 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 5 | assert(removeOne(List(1,2,3,2,1), 3) == List(1, 2, 2, 1)) | 
| 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 6 | assert(removeOne(List(1,2,3,2,1), 2) == List(1, 3, 2, 1)) | 
| 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 7 | assert(removeOne(List(1,2,3,2,1), 1) == List(2, 3, 2, 1)) | 
| 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 8 | assert(removeOne(List(1,2,3,2,1), 0) == List(1, 2, 3, 2, 1)) | 
| 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 9 | assert(removeOne(List("a", "b", "b"), "b") == List("a", "b"))
 |