marking5/bf_test2.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 02 Nov 2019 19:07:19 +0000
changeset 306 1877cc717291
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))