testing/drumb_test3.scala
changeset 138 7415ff9c91f4
parent 137 53c769a78a1e
--- a/testing/drumb_test3.scala	Thu Nov 09 16:04:31 2017 +0000
+++ b/testing/drumb_test3.scala	Thu Nov 09 16:21:01 2017 +0000
@@ -11,6 +11,10 @@
 val urban_rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CCI", 
                                   "DLR", "EQIX", "EQR", "ESS", "EXR", "FRT", "GGP", "HCP") 
 
+val urban_rstate_res = CW6c.investment(urban_rstate_portfolio, 1978 to 2017, 100)
+val urban_blchip_res = CW6c.investment(urban_blchip_portfolio, 1978 to 2017, 100)
 
-assert(CW6c.investment(urban_rstate_portfolio, 1978 to 2017, 100) == 30839)
-assert(CW6c.investment(urban_blchip_portfolio, 1978 to 2017, 100) == 349597)
+// the rstate value is 30895 because of a faulty ESS.cvs file
+
+assert(urban_rstate_res > 30885 && urban_rstate_res < 30905)
+assert(urban_blchip_res > 349587 && urban_blchip_res < 349607)