marking/drumb_test1.scala
author Christian Urban <urbanc@in.tum.de>
Tue, 24 Jan 2017 12:57:40 +0000
changeset 100 93260be6770f
parent 81 ff8d075842d5
child 169 b37052895281
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
81
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
//println("starting test now")
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
import scala.concurrent._
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
import scala.concurrent.duration._
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
import ExecutionContext.Implicits.global
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
import scala.language.postfixOps 
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
lazy val f = Future {
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  assert(get_prices(List("BIDU"), 2004 to 2008) == List(List(None), List(None), 
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
                                                        List(Some(6.35)), List(Some(12.241)), 
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
                                                        List(Some(38.188))))
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
}
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
Await.result(f, 180 second)
ff8d075842d5 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16