diff -r 8c5804b2f9d2 -r fda7c39f3b6a main_testing2/wordle_test3b.scala --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_testing2/wordle_test3b.scala Wed Nov 09 16:44:16 2022 +0000 @@ -0,0 +1,12 @@ + +import Resit._ + +assert(score("chess", "caves") == List(Correct, Absent, Absent, Present, Correct)) +assert(score("doses", "slide") == List(Present, Absent, Absent, Present, Present)) +assert(score("chess", "swiss") == List(Absent, Absent, Absent, Correct, Correct)) +assert(score("chess", "eexss") == List(Present, Absent, Absent, Correct, Correct)) + +val urban_p = pool("chess", "caves") + +assert(aux("chess".toList, "caves".toList, Nil) == List(Correct, Absent, Absent, Absent, Correct)) +assert(aux("chess".toList, "caves".toList, urban_p) == List(Correct, Absent, Absent, Present, Correct))