testing3/re1d_test.scala
changeset 160 250e1d7df9ff
parent 153 316f9c6cc2ff
equal deleted inserted replaced
159:6ba27d7cf416 160:250e1d7df9ff
     1 
     1 
     2 import scala.concurrent._
     2 //import scala.concurrent._
     3 import scala.concurrent.duration._
     3 //import scala.concurrent.duration._
     4 import ExecutionContext.Implicits.global
     4 //import ExecutionContext.Implicits.global
     5 import scala.language.postfixOps 
     5 //import scala.language.postfixOps 
     6 import scala.language.reflectiveCalls
     6 //import scala.language.reflectiveCalls
     7 
     7 
     8 
     8 
     9 
     9 
    10 lazy val f = Future {
    10 //lazy val f = Future {
    11   import CW8a._
    11   import CW8a._
    12 
    12 
    13   val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b'))
    13   val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b'))
    14 
    14 
    15   //println("1")
    15   //println("1")
    34   assert(matcher(ZERO, "") == false)
    34   assert(matcher(ZERO, "") == false)
    35   //println("11")
    35   //println("11")
    36   assert(matcher(ONE | CHAR('a'), "") == true)
    36   assert(matcher(ONE | CHAR('a'), "") == true)
    37   //println("12")
    37   //println("12")
    38   assert(matcher(ONE | CHAR('a'), "a") == true)
    38   assert(matcher(ONE | CHAR('a'), "a") == true)
    39 }
    39 //}
    40 
    40 
    41 Await.result(f, 90 second)
    41 //Await.result(f, 90 second)