main_marking3/re_test7.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 11 Apr 2022 23:55:27 +0100
changeset 424 daf561a83ba6
parent 390 175a950470a9
child 463 0315d9983cd0
permissions -rw-r--r--
added

import M3._

val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b'))

assert(matcher(EVIL_urban, "a" * 1000000) == false)
assert(matcher(EVIL_urban, "a" * 1000000 ++ "b") == true)