marking1/drumb_test1.scala
changeset 169 b37052895281
parent 158 94b11ac19b41
child 210 63a1376cbebd
equal deleted inserted replaced
168:03530cb87cd0 169:b37052895281
     1 
       
     2 /*
       
     3 assert(CW6c.get_prices(List("BIDU"), 2004 to 2008) == List(List(None), List(None), 
       
     4                                                       List(Some(6.35)), List(Some(12.241)), 
       
     5                                                       List(Some(38.188))))
       
     6 
       
     7 */
       
     8 assert(CW6c.get_prices(List("GOOG", "AAPL"), 2010 to 2012) ==
       
     9     List(List(Some(311.349976), Some(27.505054)), 
       
    10          List(Some(300.222351), Some(42.357094)), 
       
    11          List(Some(330.555054), Some(52.852215))))
       
    12 
     1 
    13 
     2 
    14 
     3 
       
     4 assert(CW6c.get_prices(List("BIDU"), 2004 to 2008) == 
       
     5        List(List(None), List(None), 
       
     6             List(Some(6.35)), List(Some(12.241)), 
       
     7             List(Some(38.188))))
       
     8 
       
     9 
       
    10 assert(CW6c.get_prices(List("GOOG", "AAPL"), 2010 to 2012) ==
       
    11        List(List(Some(311.349976), Some(27.505054)), 
       
    12             List(Some(300.222351), Some(42.357094)), 
       
    13             List(Some(330.555054), Some(52.852215))))