marking1/drumb_test1.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 17 Nov 2018 22:39:02 +0000
changeset 210 63a1376cbebd
parent 169 b37052895281
child 267 9e0216756771
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
210
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
     1
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
     2
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
     3
assert(get_january_data("GOOG", 1980) == List())
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
     4
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
     5
assert(get_january_data("GOOG", 2010).head == "2010-01-04,311.349976")
158
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
94b11ac19b41 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
210
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
     9
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    10
/*
169
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    11
assert(CW6c.get_prices(List("BIDU"), 2004 to 2008) == 
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    12
       List(List(None), List(None), 
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    13
            List(Some(6.35)), List(Some(12.241)), 
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    14
            List(Some(38.188))))
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    15
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    16
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    17
assert(CW6c.get_prices(List("GOOG", "AAPL"), 2010 to 2012) ==
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    18
       List(List(Some(311.349976), Some(27.505054)), 
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    19
            List(Some(300.222351), Some(42.357094)), 
b37052895281 updated
Christian Urban <urbanc@in.tum.de>
parents: 158
diff changeset
    20
            List(Some(330.555054), Some(52.852215))))
210
63a1376cbebd updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    21
*/