marking4/re_test1.scala
author Christian Urban <urbanc@in.tum.de>
Fri, 01 Nov 2019 23:14:35 +0000
changeset 302 b15e7260e9be
parent 288 3cd6c850c252
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
288
3cd6c850c252 updated
Christian Urban <urbanc@in.tum.de>
parents: 245
diff changeset
     1
import CW9c._
168
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(nullable(ZERO) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
assert(nullable(ONE) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(nullable(CHAR('a')) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
assert(nullable(ZERO | ONE) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
assert(nullable(ZERO | CHAR('a')) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
assert(nullable(ONE ~  ONE) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
assert(nullable(ONE ~ CHAR('a')) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
assert(nullable(STAR(ZERO)) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11