diff -r d58954a96ec1 -r 077e63e96287 testing/drumb_test3.scala --- a/testing/drumb_test3.scala Wed Nov 08 16:08:16 2017 +0000 +++ b/testing/drumb_test3.scala Wed Nov 08 20:27:56 2017 +0000 @@ -34,3 +34,12 @@ assert(CW6c.yearly_yield(CW6c.get_deltas(urban_prices), 100, 0) == 125) + + +val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU") +val rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CCI", + "DLR", "EQIX", "EQR", "ESS", "EXR", "FRT", "GGP", "HCP") + + +assert(CW6c.investment(rstate_portfolio, 1978 to 2017, 100) == 30839) +assert(CW6c.investment(blchip_portfolio, 1978 to 2017, 100) == 349597)