marking4/re_test1.scala
author Christian Urban <urbanc@in.tum.de>
Sat, 02 Feb 2019 13:28:05 +0000
changeset 261 abb03b298dcb
parent 245 744496a2bade
child 288 3cd6c850c252
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
168
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
assert(nullable(ZERO) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
assert(nullable(ONE) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
assert(nullable(CHAR('a')) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
assert(nullable(ZERO | ONE) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
assert(nullable(ZERO | CHAR('a')) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
assert(nullable(ONE ~  ONE) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
assert(nullable(ONE ~ CHAR('a')) == false)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
assert(nullable(STAR(ZERO)) == true)
bb69fdebf05a updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10