main_testing5/bf_test2.scala
changeset 348 b5b6ed38c2f2
parent 286 5c57c407e27b
child 404 bf20a9fa5c29
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_testing5/bf_test2.scala	Mon Nov 02 13:10:02 2020 +0000
@@ -0,0 +1,6 @@
+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))