marking4/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 01 Dec 2018 15:09:37 +0000
changeset 228 e1e3e259e9b7
parent 227 37e659cfbb2e
permissions -rw-r--r--
updated

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)