| author | Christian Urban <christian.urban@kcl.ac.uk> | 
| Mon, 06 Nov 2023 14:18:26 +0000 | |
| changeset 474 | 8a61bcd51ec3 | 
| parent 460 | f5c0749858fd | 
| child 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  | 
|
| 460 | 6  | 
lazy val f = Future {
 | 
| 421 | 7  | 
assert(C1.last_odd(113) == 85)  | 
8  | 
assert(C1.last_odd(84) == 21)  | 
|
9  | 
assert(C1.last_odd(605) == 341)  | 
|
| 460 | 10  | 
}  | 
11  | 
||
12  | 
Await.result(f, 32 second)  |