equal
deleted
inserted
replaced
1 //println("starting test now") |
|
2 |
1 |
3 import scala.concurrent._ |
2 assert(get_prices(List("BIDU"), 2004 to 2008) == List(List(None), List(None), |
4 import scala.concurrent.duration._ |
3 List(Some(6.35)), List(Some(12.241)), |
5 import ExecutionContext.Implicits.global |
4 List(Some(38.188)))) |
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 |
5 |
14 |
6 |
15 Await.result(f, 180 second) |
|
16 |
|