| changeset 460 | f5c0749858fd |
| parent 421 | 864107857d27 |
| child 491 | 2a30c7dfe3ed |
| 459:7acbef680bef | 460:f5c0749858fd |
|---|---|
1 import scala.concurrent._ |
|
2 import scala.concurrent.duration._ |
|
3 import ExecutionContext.Implicits.global |
|
4 import scala.language.postfixOps |
|
1 |
5 |
6 lazy val f = Future { |
|
2 assert(C1.last_odd(113) == 85) |
7 assert(C1.last_odd(113) == 85) |
3 assert(C1.last_odd(84) == 21) |
8 assert(C1.last_odd(84) == 21) |
4 assert(C1.last_odd(605) == 341) |
9 assert(C1.last_odd(605) == 341) |
10 } |
|
11 |
|
12 Await.result(f, 32 second) |