marking/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 16 Aug 2019 08:45:21 +0100
changeset 277 acaf2099406a
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)