marking1/drumb_test1.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 17 Nov 2018 13:33:51 +0000
changeset 207 69d71d19a9f1
parent 169 8a1bd8ddb96c
child 210 34f935e13bdd
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
158
f60e0908f80b updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
f60e0908f80b updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
f60e0908f80b updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
169
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
     4
assert(CW6c.get_prices(List("BIDU"), 2004 to 2008) == 
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
     5
       List(List(None), List(None), 
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
     6
            List(Some(6.35)), List(Some(12.241)), 
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
     7
            List(Some(38.188))))
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
     8
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
     9
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    10
assert(CW6c.get_prices(List("GOOG", "AAPL"), 2010 to 2012) ==
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    11
       List(List(Some(311.349976), Some(27.505054)), 
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    12
            List(Some(300.222351), Some(42.357094)), 
8a1bd8ddb96c updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    13
            List(Some(330.555054), Some(52.852215))))