marking5/bf_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 25 Aug 2020 01:18:17 +0100
changeset 337 c0d9e6548b08
parent 286 5c57c407e27b
permissions -rw-r--r--
update

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