main_testing5/bf_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 04 Nov 2023 18:53:37 +0000
changeset 476 7550c816187a
parent 475 59e005dcf163
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
475
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     1
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     2
def urbanmain() = {
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     3
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     4
  import M5a._
235
c989f50da5de updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
475
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     6
  assert(sread(Map(), 2) == 0)
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     7
  assert(sread(Map(2 -> 1), 2) == 1)
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     8
  assert(write(Map(), 1, 2) == Map(1 -> 2))
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
     9
  assert(write(Map(1 -> 0), 1, 2) == Map(1 -> 2))
59e005dcf163 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 404
diff changeset
    10
}