marking/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 17 Nov 2018 13:14:52 +0000
changeset 206 bbe00108a6f3
parent 90 d77af4aca939
permissions -rw-r--r--
updated


import scala.concurrent._
import scala.concurrent.duration._
import ExecutionContext.Implicits.global
import scala.language.postfixOps 



lazy val f = Future {
  assert(nullable(ZERO) == false)
  assert(nullable(ONE) == true)
  assert(nullable(CHAR('a')) == false)
  assert(nullable(ZERO | ONE) == true)
  assert(nullable(ZERO | CHAR('a')) == false)
  assert(nullable(ONE ~  ONE) == true)
  assert(nullable(ONE ~ CHAR('a')) == false)
  assert(nullable(STAR(ZERO)) == true)
}

Await.result(f, 120 second)