| author | Christian Urban <urbanc@in.tum.de> |
| Wed, 11 Jan 2017 14:42:46 +0000 | |
| changeset 98 | 44a20e85dd38 |
| parent 82 | 28c8e17ab83a |
| child 99 | 2b7a2dc0e18f |
| permissions | -rw-r--r-- |
| 82 | 1 |
//println("starting test now")
|
2 |
||
3 |
import scala.concurrent._ |
|
4 |
import scala.concurrent.duration._ |
|
5 |
import ExecutionContext.Implicits.global |
|
6 |
import scala.language.postfixOps |
|
7 |
||
8 |
lazy val f = Future {
|
|
9 |
assert(get_prices(List("BIDU"), 2004 to 2008) == List(List(None), List(None),
|
|
10 |
List(Some(6.35)), List(Some(12.241)), |
|
11 |
List(Some(38.188)))) |
|
12 |
} |
|
13 |
||
14 |
||
15 |
Await.result(f, 180 second) |
|
16 |