main_testing3/re_test1.scala
changeset 433 6af86ba1208f
parent 403 ffce7b61b446
child 475 59e005dcf163
equal deleted inserted replaced
432:de701b64a4e0 433:6af86ba1208f
     6 assert(nullable(ZERO | ONE) == true)
     6 assert(nullable(ZERO | ONE) == true)
     7 assert(nullable(ZERO | CHAR('a')) == false)
     7 assert(nullable(ZERO | CHAR('a')) == false)
     8 assert(nullable(ONE ~  ONE) == true)
     8 assert(nullable(ONE ~  ONE) == true)
     9 assert(nullable(ONE ~ CHAR('a')) == false)
     9 assert(nullable(ONE ~ CHAR('a')) == false)
    10 assert(nullable(STAR(ZERO)) == true)
    10 assert(nullable(STAR(ZERO)) == true)
       
    11 assert(nullable(ALTs(List(ONE, CHAR('a'), ZERO))) == true)
       
    12 assert(nullable(SEQs(List(ONE, ALTs(List(ONE, CHAR('a'), ZERO)), STAR(ZERO)))) == true)
    11 
    13