# HG changeset patch # User Christian Urban # Date 1668019257 0 # Node ID d4d4669ad05482df3c858aa64b747f64e51b8339 # Parent db3300b477251cdf3c0528d369e9d6604a734a60 updated import diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test1.scala --- a/main_testing2/wordle_test1.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test1.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt""" val urban_secrets = get_wordle_list(urban_wordle_url) diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test2.scala --- a/main_testing2/wordle_test2.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test2.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ assert(removeOne(List(1,2,3,2,1), 3) == List(1, 2, 2, 1)) diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test3a.scala --- a/main_testing2/wordle_test3a.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test3a.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ assert(pool("chess", "caves").toSet == Set('h', 'e', 's')) assert(pool("chess", "swiss").toSet == Set('c', 'h', 'e')) diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test3b.scala --- a/main_testing2/wordle_test3b.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test3b.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ assert(score("chess", "caves") == List(Correct, Absent, Absent, Present, Correct)) assert(score("doses", "slide") == List(Present, Absent, Absent, Present, Present)) diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test4.scala --- a/main_testing2/wordle_test4.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test4.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ assert(iscore("chess", "caves") == 21) assert(iscore("chess", "swiss") == 20) diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test5.scala --- a/main_testing2/wordle_test5.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test5.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ import io.Source diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test6.scala --- a/main_testing2/wordle_test6.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test6.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ import io.Source diff -r db3300b47725 -r d4d4669ad054 main_testing2/wordle_test7.scala --- a/main_testing2/wordle_test7.scala Wed Nov 09 18:30:46 2022 +0000 +++ b/main_testing2/wordle_test7.scala Wed Nov 09 18:40:57 2022 +0000 @@ -1,5 +1,5 @@ -import Resit._ +import M2._ import io.Source