equal
deleted
inserted
replaced
1 |
|
2 val urban_prices = List(List(Some(311.349976), Some(27.505054)), |
|
3 List(Some(300.222351), Some(42.357094)), |
|
4 List(Some(330.555054), Some(52.852215))) |
|
5 |
|
6 |
|
7 assert(CW6c.yearly_yield(CW6c.get_deltas(urban_prices), 100, 0) == 125) |
|
8 |
|
9 |
|
10 val urban_blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU") |
|
11 val urban_rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CCI", |
|
12 "DLR", "EQIX", "EQR", "ESS", "EXR", "FRT", "GGP", "HCP") |
|
13 |
|
14 val urban_rstate_res = CW6c.investment(urban_rstate_portfolio, 1978 to 2017, 100) |
|
15 val urban_blchip_res = CW6c.investment(urban_blchip_portfolio, 1978 to 2017, 100) |
|
16 |
|
17 // the rstate value is 30895 because of a faulty ESS.cvs file |
|
18 |
|
19 assert(urban_rstate_res > 30885 && urban_rstate_res < 30905) |
|
20 assert(urban_blchip_res > 349587 && urban_blchip_res < 349607) |
|