author | Christian Urban <urbanc@in.tum.de> |
Tue, 26 Jun 2018 01:49:32 +0100 | |
changeset 187 | 4d300409f2fe |
parent 160 | 863feeb5c760 |
permissions | -rw-r--r-- |
153 | 1 |
|
160 | 2 |
//import scala.concurrent._ |
3 |
//import scala.concurrent.duration._ |
|
4 |
//import ExecutionContext.Implicits.global |
|
5 |
//import scala.language.postfixOps |
|
6 |
//import scala.language.reflectiveCalls |
|
153 | 7 |
|
160 | 8 |
//lazy val f = Future { |
153 | 9 |
import CW8b._ |
10 |
||
11 |
assert(sread(Map(), 2) == 0) |
|
12 |
assert(sread(Map(2 -> 1), 2) == 1) |
|
13 |
assert(write(Map(), 1, 2) == Map(1 -> 2)) |
|
14 |
assert(write(Map(1 -> 0), 1, 2) == Map(1 -> 2)) |
|
160 | 15 |
//} |
153 | 16 |
|
160 | 17 |
//Await.result(f, 120 second) |