author | Christian Urban <christian.urban@kcl.ac.uk> |
Fri, 26 Apr 2024 17:35:36 +0100 | |
changeset 486 | 9c03b5e89a2a |
parent 463 | 0315d9983cd0 |
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) |