| author | Christian Urban <christian.urban@kcl.ac.uk> | 
| Fri, 12 Sep 2025 10:36:07 +0100 | |
| changeset 492 | 17e6f46260bd | 
| parent 491 | 2a30c7dfe3ed | 
| permissions | -rw-r--r-- | 
| 460 | 1  | 
import scala.concurrent._  | 
2  | 
import scala.concurrent.duration._  | 
|
3  | 
import ExecutionContext.Implicits.global  | 
|
4  | 
import scala.language.postfixOps  | 
|
| 373 | 5  | 
|
| 491 | 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)  | 
|
| 460 | 15  | 
}  |