marking/trade_test4.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 16 Jun 2018 20:55:51 +0100
changeset 185 5ab45f3fee1c
parent 65 f59e70e2ad82
permissions -rw-r--r--
updated

//println("starting test now")


import scala.concurrent._
import scala.concurrent.duration._
import ExecutionContext.Implicits.global
import scala.language.postfixOps 

lazy val f = Future {
  assert(query_company("YHOO") == ("1996-07-24", "2000-01-03"))
  assert(query_company("IBM") == ("1962-06-14", "2013-03-14"))
  assert(query_company("BIDU") == ("2006-02-07", "2014-11-11"))
}

Await.result(f, 120 second)