main_testing2/wordle_test1.scala
changeset 475 59e005dcf163
parent 437 d4d4669ad054
--- a/main_testing2/wordle_test1.scala	Thu Nov 02 13:53:37 2023 +0000
+++ b/main_testing2/wordle_test1.scala	Thu Nov 02 23:34:53 2023 +0000
@@ -1,11 +1,12 @@
 
-import M2._
-
-val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt"""
-val urban_secrets = get_wordle_list(urban_wordle_url)
+def urbanmain() = {
+  import M2._
 
-assert(urban_secrets.length == 12972)
-assert(urban_secrets.filter(_.length != 5) == Nil)
+  val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt"""
+  val urban_secrets = get_wordle_list(urban_wordle_url)
 
-assert(get_wordle_list(urban_wordle_url ++ "2") == Nil)
+  assert(urban_secrets.length == 12972)
+  assert(urban_secrets.filter(_.length != 5) == Nil)
 
+  assert(get_wordle_list(urban_wordle_url ++ "2") == Nil)
+}