main_marking3/re_test7.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 31 Jan 2021 03:24:32 +0000
changeset 392 97ecdc8cb61b
parent 390 175a950470a9
child 424 daf561a83ba6
permissions -rw-r--r--
marking 5

import CW8c._

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)