testing4/re_test1.scala
author Christian Urban <urbanc@in.tum.de>
Sun, 09 Dec 2018 01:36:49 +0000
changeset 243 9bb36426c781
parent 221 9e7897f25e13
child 300 72688efdf17c
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
221
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     1
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     2
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     3
 
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     4
assert(nullable(ZERO) == false)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     5
assert(nullable(ONE) == true)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     6
assert(nullable(CHAR('a')) == false)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     7
assert(nullable(ZERO | ONE) == true)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     8
assert(nullable(ZERO | CHAR('a')) == false)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
     9
assert(nullable(ONE ~  ONE) == true)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
    10
assert(nullable(ONE ~ CHAR('a')) == false)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
    11
assert(nullable(STAR(ZERO)) == true)
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
    12
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
    13
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
160
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    15
//import scala.concurrent._
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    16
//import scala.concurrent.duration._
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    17
//import ExecutionContext.Implicits.global
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    18
//import scala.language.postfixOps 
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    19
//import scala.language.reflectiveCalls
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
160
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    21
//lazy val f = Future {
153
4383809c176a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
160
863feeb5c760 updated
Christian Urban <urbanc@in.tum.de>
parents: 153
diff changeset
    23
//}
221
9e7897f25e13 updated
Christian Urban <urbanc@in.tum.de>
parents: 215
diff changeset
    24
//Await.result(f,30 second)