marking4/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 06 Dec 2018 22:51:46 +0000
changeset 237 db4d2fcd8063
parent 227 b5f3e814a710
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)