main_testing3/re_test1.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 06 Nov 2021 00:06:39 +0000
changeset 399 b17a98b0c52f
parent 347 4de31fdc0d67
child 403 ffce7b61b446
permissions -rw-r--r--
updated

import CW8c._

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)