testing1/drumb_test7.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 07 Aug 2019 14:32:21 +0100
changeset 272 da3d30ae67ec
parent 248 1616d06a0893
child 281 87b9e3e2c1a7
permissions -rw-r--r--
updated


assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2000, 100) == 100)
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2001, 100) == 27)
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2002, 100) == 42)
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) == 27)
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) == 38)
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) == 113)
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) == 254)
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) == 349)