marking1/drumb_test7.scala
changeset 261 8997430d9765
parent 260 b4812c877b05
child 268 e43f7e92ba26
equal deleted inserted replaced
260:b4812c877b05 261:8997430d9765
     5 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) == 27)
     5 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) == 27)
     6 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) == 38)
     6 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) == 38)
     7 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) == 113)
     7 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) == 113)
     8 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) == 254)
     8 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) == 254)
     9 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) == 349)
     9 assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) == 349)
       
    10 assert(investment(List("GOOG", "AAPL", "BIDU"), 1990 to 2017, 100) == 83061)