marking4/re1e_test.scala
changeset 227 b5f3e814a710
parent 168 03530cb87cd0
equal deleted inserted replaced
226:5e489c9fe47b 227:b5f3e814a710
       
     1 
       
     2 import CW8a._
       
     3 
       
     4 val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b'))
       
     5 
       
     6 assert(size(der('a', der('a', EVIL_urban))) == 28)
       
     7 assert(size(der('a', der('a', der('a', EVIL_urban)))) == 58)
       
     8 
       
     9 assert(size(ders("aaaaaa".toList, EVIL_urban)) == 8)
       
    10 assert(size(ders(("a" * 50).toList, EVIL_urban)) == 8)