main_testing2/wordle_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 06 Jun 2024 19:14:33 +0100
changeset 489 d51cacc92480
parent 475 59e005dcf163
permissions -rw-r--r--
updated to Scala 3


def urbanmain() = {
  import M2._

  val urban_wordle_url = """https://nms.kcl.ac.uk/christian.urban/wordle.txt"""
  val urban_secrets = get_wordle_list(urban_wordle_url)

  assert(urban_secrets.length == 12972)
  assert(urban_secrets.filter(_.length != 5) == Nil)

  assert(get_wordle_list(urban_wordle_url ++ "2") == Nil)
}