marking4/re_test1.scala
changeset 483 a2c4c6bf319d
parent 482 20f02c5ff53f
child 484 70c477ad2fd9
equal deleted inserted replaced
482:20f02c5ff53f 483:a2c4c6bf319d
     1 import CW9c._
       
     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