130
|
1 |
|
248
|
2 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2000, 100) == 100)
|
|
3 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2001, 100) == 27)
|
|
4 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2002, 100) == 42)
|
|
5 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) == 27)
|
|
6 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) == 38)
|
|
7 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) == 113)
|
|
8 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) == 254)
|
|
9 |
assert(investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) == 349)
|