testing/drumb_test3.scala
changeset 135 077e63e96287
parent 130 7f3f01dfe738
child 137 53c769a78a1e
--- 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)