progs/cw1.scala
changeset 192 9f0631804555
parent 190 0b63c0edfb09
child 208 bd5a8a6b3871
equal deleted inserted replaced
191:ff6665581ced 192:9f0631804555
   191 println("EVIL2:")
   191 println("EVIL2:")
   192 println(matcher(EVIL2, "aaa" * 40))
   192 println(matcher(EVIL2, "aaa" * 40))
   193 println(matcher(EVIL2, "aaa" * 43 + "aa"))
   193 println(matcher(EVIL2, "aaa" * 43 + "aa"))
   194 println(matcher(EVIL2, "aaa" * 45 + "a"))
   194 println(matcher(EVIL2, "aaa" * 45 + "a"))
   195 
   195 
   196 println("TEST")
   196 println("TEST for bug pointed out by Filips Ivanovs")
   197 val test = NMTIMES(RANGE(LOWERCASE + "."), 2, 6)
   197 val test = NMTIMES(RANGE(LOWERCASE + "."), 2, 6)
   198   
   198   
       
   199 println(matcher(test,"a"))
   199 println(matcher(test,"ab"))
   200 println(matcher(test,"ab"))
   200 println(matcher(test,"abcdef"))
   201 println(matcher(test,"abcdef"))
   201 println(matcher(test,"abc"))
   202 println(matcher(test,"abc"))
   202 println(matcher(test,"...."))
   203 println(matcher(test,"...."))
   203 println(matcher(test,"asdfg"))
   204 println(matcher(test,"asdfg"))