author | Christian Urban <christian.urban@kcl.ac.uk> |
Fri, 12 Sep 2025 10:36:07 +0100 | |
changeset 495 | b47879225270 |
parent 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 |
|
494 | 6 |
def urbanmain() = { |
7 |
||
8 |
lazy val f = Future { |
|
9 |
assert(C1.last_odd(113) == 85) |
|
10 |
assert(C1.last_odd(84) == 21) |
|
11 |
assert(C1.last_odd(605) == 341) |
|
12 |
} |
|
13 |
||
14 |
Await.result(f, 32 second) |
|
463 | 15 |
} |