marking5/bf_test2.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 05 Aug 2019 20:14:06 +0100
changeset 269 86a85865e772
parent 253 ec7a12806c3f
child 286 5c57c407e27b
permissions -rw-r--r--
updated


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