main_testing1/drumb_test3.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 04 Aug 2022 16:53:38 +0200
changeset 426 b51467741af2
parent 402 de59aa20a1dc
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
402
de59aa20a1dc updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 347
diff changeset
     1
import M1._
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