testing4/re_test1.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 01 Nov 2019 12:39:25 +0000
changeset 301 c3b33c709696
parent 300 72688efdf17c
permissions -rw-r--r--
updated

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)