testing/drumb_test3.scala
changeset 135 077e63e96287
parent 130 7f3f01dfe738
child 137 53c769a78a1e
equal deleted inserted replaced
134:d58954a96ec1 135:077e63e96287
    32 			List(Some(300.222351), Some(42.357094)), 
    32 			List(Some(300.222351), Some(42.357094)), 
    33 			List(Some(330.555054), Some(52.852215)))
    33 			List(Some(330.555054), Some(52.852215)))
    34 
    34 
    35 
    35 
    36 assert(CW6c.yearly_yield(CW6c.get_deltas(urban_prices), 100, 0) == 125)
    36 assert(CW6c.yearly_yield(CW6c.get_deltas(urban_prices), 100, 0) == 125)
       
    37 
       
    38 
       
    39 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")
       
    40 val rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CCI", 
       
    41                             "DLR", "EQIX", "EQR", "ESS", "EXR", "FRT", "GGP", "HCP") 
       
    42 
       
    43 
       
    44 assert(CW6c.investment(rstate_portfolio, 1978 to 2017, 100) == 30839)
       
    45 assert(CW6c.investment(blchip_portfolio, 1978 to 2017, 100) == 349597)