main_testing2/wordle_test5.scala
changeset 475 59e005dcf163
parent 437 d4d4669ad054
--- a/main_testing2/wordle_test5.scala	Thu Nov 02 13:53:37 2023 +0000
+++ b/main_testing2/wordle_test5.scala	Thu Nov 02 23:34:53 2023 +0000
@@ -1,20 +1,21 @@
 
-import M2._
-import io.Source
+def urbanmain() = {
+  import M2._
+  import io.Source
 
 
-def urban_get_wordle_list(url: String) : List[String] = {
-  Source.fromFile(url)("ISO-8859-1").getLines().toList
-}
-val urban_secrets = urban_get_wordle_list("wordle.txt")
+  def urban_get_wordle_list(url: String) : List[String] = {
+    Source.fromFile(url)("ISO-8859-1").getLines().toList
+  }
+  val urban_secrets = urban_get_wordle_list("wordle.txt")
 
-//val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt"""
-//val urban_secrets = get_wordle_list(urban_wordle_url)
+  //val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt"""
+  //val urban_secrets = get_wordle_list(urban_wordle_url)
 
 
-assert(evil(urban_secrets, "stent").length == 1907)
-assert(evil(urban_secrets, "hexes").length == 2966)
-assert(evil(urban_secrets, "horse").length == 1203)
-assert(evil(urban_secrets, "hoise").length == 971)
-assert(evil(urban_secrets, "house").length == 1228)
-
+  assert(evil(urban_secrets, "stent").length == 1907)
+  assert(evil(urban_secrets, "hexes").length == 2966)
+  assert(evil(urban_secrets, "horse").length == 1203)
+  assert(evil(urban_secrets, "hoise").length == 971)
+  assert(evil(urban_secrets, "house").length == 1228)
+}