| author | Christian Urban <christian.urban@kcl.ac.uk> |
| Sat, 11 Mar 2023 22:01:53 +0000 | |
| changeset 463 | 0315d9983cd0 |
| parent 424 | daf561a83ba6 |
| child 494 | 253d1ccb65de |
| permissions | -rw-r--r-- |
| 463 | 1 |
import scala.concurrent._ |
2 |
import scala.concurrent.duration._ |
|
3 |
import ExecutionContext.Implicits.global |
|
4 |
import scala.language.postfixOps |
|
| 373 | 5 |
|
| 463 | 6 |
lazy val f = Future {
|
| 424 | 7 |
assert(C1.last_odd(113) == 85) |
8 |
assert(C1.last_odd(84) == 21) |
|
9 |
assert(C1.last_odd(605) == 341) |
|
| 463 | 10 |
} |
11 |
||
12 |
Await.result(f, 32 second) |