marking/knight3a_test.scala
changeset 281 87b9e3e2c1a7
parent 280 a057dc4457fc
child 282 ec9773fe1dc0
equal deleted inserted replaced
280:a057dc4457fc 281:87b9e3e2c1a7
     1 
       
     2 import scala.concurrent._
       
     3 import scala.concurrent.duration._
       
     4 import ExecutionContext.Implicits.global
       
     5 import scala.language.postfixOps 
       
     6 
       
     7 lazy val f = Future {
       
     8 
       
     9 assert( ordered_moves(8, List((3,4), (3,2)), (1, 3)) == List((0,1), (0,5), (2,1), (2,5)))
       
    10 assert( ordered_moves(8, List((4,0)), (0,0)) == List((2,1), (1,2)))
       
    11 assert( ordered_moves(8, List((0,4)), (0,0)) == List((1,2), (2,1)))
       
    12 
       
    13 }
       
    14 
       
    15 Await.result(f, 120 second)