marking3/re1a_test.scala
changeset 227 b5f3e814a710
parent 226 5e489c9fe47b
child 228 33c2655be47d
equal deleted inserted replaced
226:5e489c9fe47b 227:b5f3e814a710
     1 import CW8a._
       
     2 
       
     3 assert(nullable(ZERO) == false)
       
     4 assert(nullable(ONE) == true)
       
     5 assert(nullable(CHAR('a')) == false)
       
     6 assert(nullable(ZERO | ONE) == true)
       
     7 assert(nullable(ZERO | CHAR('a')) == false)
       
     8 assert(nullable(ONE ~  ONE) == true)
       
     9 assert(nullable(ONE ~ CHAR('a')) == false)
       
    10 assert(nullable(STAR(ZERO)) == true)
       
    11