main_testing5/bf_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 04 Nov 2020 14:55:49 +0000
changeset 350 c5ad0e3f2a6d
parent 348 b5b6ed38c2f2
child 404 bf20a9fa5c29
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))