testing4/re_test1.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 31 Oct 2019 12:01:56 +0000
changeset 300 72688efdf17c
parent 221 9e7897f25e13
permissions -rw-r--r--
updated testing files

import CW9c._

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)