main_marking3/re_test7.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 15 Jan 2023 10:58:13 +0000
changeset 462 34feeb53c0ba
parent 424 daf561a83ba6
child 463 0315d9983cd0
permissions -rw-r--r--
updated

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)