marking4/re1a_test.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 07 Dec 2018 03:15:46 +0000
changeset 239 0c752ac51cfa
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)