main_testing3/re_test1.scala
changeset 430 4029552de5fc
parent 403 312c9eb39ad8
child 472 fbff6f601370
equal deleted inserted replaced
429:440836d805e3 430:4029552de5fc
     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