testing3/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 23 Nov 2017 10:56:47 +0000
changeset 153 4383809c176a
child 160 863feeb5c760
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
import scala.concurrent._
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
import scala.concurrent.duration._
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
import ExecutionContext.Implicits.global
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
import scala.language.postfixOps 
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
import scala.language.reflectiveCalls
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
lazy val f = Future {
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
  import CW8a._
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  assert(nullable(ZERO) == false)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  assert(nullable(ONE) == true)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
  assert(nullable(CHAR('a')) == false)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
  assert(nullable(ZERO | ONE) == true)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
  assert(nullable(ZERO | CHAR('a')) == false)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
  assert(nullable(ONE ~  ONE) == true)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
  assert(nullable(ONE ~ CHAR('a')) == false)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
  assert(nullable(STAR(ZERO)) == true)
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
}
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
Await.result(f, 120 second)