main_testing3/re_test5.scala
changeset 475 59e005dcf163
parent 433 6af86ba1208f
equal deleted inserted replaced
474:b528d1d3d3c3 475:59e005dcf163
     1 import M3._
       
     2 
     1 
     3 assert(flts(List(CHAR('a'), ZERO, ONE), Nil) == List(ZERO))
     2 def urbanmain() = {
     4 assert(flts(List(CHAR('a'), ONE, ONE, CHAR('b')), Nil) == List(CHAR('a'), CHAR('b')))
       
     5 assert(flts(List(ONE ~ CHAR('a'), CHAR('b') ~ ONE), Nil) == List(ONE, CHAR('a'), CHAR('b'), ONE))
       
     6 
     3 
       
     4   import M3._
       
     5 
       
     6   assert(flts(List(CHAR('a'), ZERO, ONE), Nil) == List(ZERO))
       
     7   assert(flts(List(CHAR('a'), ONE, ONE, CHAR('b')), Nil) == List(CHAR('a'), CHAR('b')))
       
     8   assert(flts(List(ONE ~ CHAR('a'), CHAR('b') ~ ONE), Nil) == List(ONE, CHAR('a'), CHAR('b'), ONE))
       
     9 
       
    10 }
       
    11