diff -r 50a3b874008a -r 1616d06a0893 testing1/drumb.scala --- a/testing1/drumb.scala Sat Dec 15 13:46:54 2018 +0000 +++ b/testing1/drumb.scala Sat Dec 15 23:58:12 2018 +0000 @@ -153,4 +153,15 @@ //} +//val ds = get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) +//yearly_yield(ds, 100, 0) => 125 +//yearly_yield(ds, 100, 1) => 117 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2000, 100) // => 100 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2001, 100) // => 27 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2002, 100) // => 42 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) // => 27 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) // => 38 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) // => 113 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) // => 254 +//investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) // => 349