marking3/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 07 Nov 2018 11:59:16 +0000
changeset 197 c3e39fdeea3b
parent 168 03530cb87cd0
permissions -rw-r--r--
update

import CW8a._

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)