main_marking3/re_test7.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Tue, 01 Nov 2022 15:03:48 +0000
changeset 425 6e990ae2c6a3
parent 421 864107857d27
child 460 f5c0749858fd
permissions -rw-r--r--
updated solutions and templates

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)