main_testing2/wordle_test3b.scala
changeset 435 fda7c39f3b6a
child 437 d4d4669ad054
equal deleted inserted replaced
434:8c5804b2f9d2 435:fda7c39f3b6a
       
     1 
       
     2 import Resit._
       
     3 
       
     4 assert(score("chess", "caves") == List(Correct, Absent, Absent, Present, Correct))
       
     5 assert(score("doses", "slide") == List(Present, Absent, Absent, Present, Present))
       
     6 assert(score("chess", "swiss") == List(Absent, Absent, Absent, Correct, Correct))
       
     7 assert(score("chess", "eexss") == List(Present, Absent, Absent, Correct, Correct))
       
     8 
       
     9 val urban_p = pool("chess", "caves")
       
    10 
       
    11 assert(aux("chess".toList, "caves".toList, Nil) == List(Correct, Absent, Absent, Absent, Correct))
       
    12 assert(aux("chess".toList, "caves".toList, urban_p) == List(Correct, Absent, Absent, Present, Correct))