main_marking5/bf_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 08 Nov 2021 01:49:28 +0000
changeset 404 bf20a9fa5c29
parent 392 97ecdc8cb61b
child 424 daf561a83ba6
permissions -rw-r--r--
updated

import CW10a._

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))