marking4/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 07 Dec 2018 08:54:34 +0000
changeset 241 c650a91db720
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)