marking/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 24 Jul 2019 15:18:44 +0100
changeset 267 9e0216756771
parent 90 d77af4aca939
permissions -rw-r--r--
updated myassert workaround


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)