testing1/drumb_test3.scala
author Christian Urban <urbanc@in.tum.de>
Tue, 19 Nov 2019 06:38:10 +0000
changeset 321 7b0055205ec9
parent 314 21b52310bd8b
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
281
87b9e3e2c1a7 updated
Christian Urban <urbanc@in.tum.de>
parents: 199
diff changeset
     1
import CW6b._
130
7f3f01dfe738 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
7f3f01dfe738 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
7f3f01dfe738 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
314
21b52310bd8b updated
Christian Urban <urbanc@in.tum.de>
parents: 281
diff changeset
     5
assert(get_prices(List("GOOG", "AAPL"), 2010 to 2012) ==
21b52310bd8b updated
Christian Urban <urbanc@in.tum.de>
parents: 281
diff changeset
     6
   List(List(Some(312.204773), Some(26.782711)), 
21b52310bd8b updated
Christian Urban <urbanc@in.tum.de>
parents: 281
diff changeset
     7
        List(Some(301.0466), Some(41.244694)), 
21b52310bd8b updated
Christian Urban <urbanc@in.tum.de>
parents: 281
diff changeset
     8
        List(Some(331.462585), Some(51.464207))))
21b52310bd8b updated
Christian Urban <urbanc@in.tum.de>
parents: 281
diff changeset
     9
21b52310bd8b updated
Christian Urban <urbanc@in.tum.de>
parents: 281
diff changeset
    10