|
1 |
|
2 |
|
3 assert(get_january_data("GOOG", 1980) == List()) |
|
4 |
|
5 assert(get_january_data("GOOG", 2010).head == "2010-01-04,311.349976") |
1 |
6 |
2 |
7 |
3 |
8 |
|
9 |
|
10 /* |
4 assert(CW6c.get_prices(List("BIDU"), 2004 to 2008) == |
11 assert(CW6c.get_prices(List("BIDU"), 2004 to 2008) == |
5 List(List(None), List(None), |
12 List(List(None), List(None), |
6 List(Some(6.35)), List(Some(12.241)), |
13 List(Some(6.35)), List(Some(12.241)), |
7 List(Some(38.188)))) |
14 List(Some(38.188)))) |
8 |
15 |
9 |
16 |
10 assert(CW6c.get_prices(List("GOOG", "AAPL"), 2010 to 2012) == |
17 assert(CW6c.get_prices(List("GOOG", "AAPL"), 2010 to 2012) == |
11 List(List(Some(311.349976), Some(27.505054)), |
18 List(List(Some(311.349976), Some(27.505054)), |
12 List(Some(300.222351), Some(42.357094)), |
19 List(Some(300.222351), Some(42.357094)), |
13 List(Some(330.555054), Some(52.852215)))) |
20 List(Some(330.555054), Some(52.852215)))) |
|
21 */ |