marking/drumb_test2.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 02 Dec 2016 16:45:31 +0000
changeset 82 28c8e17ab83a
child 99 e10a9b2fd35a
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
82
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
//println("starting test now")
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
import scala.concurrent._
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
import scala.concurrent.duration._
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
import ExecutionContext.Implicits.global
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
import scala.language.postfixOps 
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
lazy val f = Future {
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  assert(get_prices(List("BIDU"), 2004 to 2008) == List(List(None), List(None), 
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
                                                        List(Some(6.35)), List(Some(12.241)), 
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
                                                        List(Some(38.188))))
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
}
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
Await.result(f, 180 second)
28c8e17ab83a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16