marking4/re_test1.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 30 Oct 2019 14:07:58 +0000
changeset 288 3cd6c850c252
parent 245 744496a2bade
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)