changeset 390 | 175a950470a9 |
child 424 | daf561a83ba6 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_marking3/re_test5.scala Fri Jan 29 00:56:19 2021 +0000 @@ -0,0 +1,9 @@ +import CW8c._ + +val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b')) + +assert(size(der('a', der('a', EVIL_urban))) == 28) +assert(size(der('a', der('a', der('a', EVIL_urban)))) == 58) + +assert(size(ders("aaaaaa".toList, EVIL_urban)) == 8) +assert(size(ders(("a" * 50).toList, EVIL_urban)) == 8)