main_testing3/re_test8.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 06 Mar 2024 18:20:25 +0000
changeset 484 c4561fc667b7
parent 475 59e005dcf163
permissions -rw-r--r--
test


def urbanmain() = {

  import M3._ 
  val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b'))

  assert(size(der('a', der('a', EVIL_urban))) == 36)
  assert(size(der('a', der('a', der('a', EVIL_urban)))) == 83)

  assert(size(ders("aaaaaa".toList, EVIL_urban)) == 7)
  assert(size(ders(("a" * 50).toList, EVIL_urban)) == 7)
}