core_marking1/collatz_test3.scala
changeset 494 253d1ccb65de
parent 463 0315d9983cd0
equal deleted inserted replaced
493:244df77507c2 494:253d1ccb65de
     1 import scala.concurrent._
     1 import scala.concurrent._
     2 import scala.concurrent.duration._
     2 import scala.concurrent.duration._
     3 import ExecutionContext.Implicits.global
     3 import ExecutionContext.Implicits.global
     4 import scala.language.postfixOps 
     4 import scala.language.postfixOps 
     5 
     5 
     6 lazy val f = Future {
     6 def urbanmain() = {
     7 assert(C1.last_odd(113) == 85)
     7   
     8 assert(C1.last_odd(84) == 21)
     8   lazy val f = Future {
     9 assert(C1.last_odd(605) == 341)
     9     assert(C1.last_odd(113) == 85)
       
    10     assert(C1.last_odd(84) == 21)
       
    11     assert(C1.last_odd(605) == 341)
       
    12   }
       
    13 
       
    14   Await.result(f, 32 second)
    10 }
    15 }
    11 
       
    12 Await.result(f, 32 second)