main_testing5/bf_test2.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 M5a._

  assert(sread(Map(), 2) == 0)
  assert(sread(Map(2 -> 1), 2) == 1)
  assert(write(Map(), 1, 2) == Map(1 -> 2))
  assert(write(Map(1 -> 0), 1, 2) == Map(1 -> 2))
}