author | Christian Urban <urbanc@in.tum.de> |
Wed, 07 Aug 2019 16:15:42 +0100 | |
changeset 273 | b19227660752 |
parent 245 | 975d34506e88 |
child 288 | 65731df141a5 |
permissions | -rw-r--r-- |
168 | 1 |
|
2 |
||
3 |
val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b')) |
|
4 |
||
5 |
||
245 | 6 |
assert(simp(Iterator.iterate(ONE:Rexp)(r => SEQ(r, ONE | ONE)).drop(50).next) == ONE) |
7 |
assert(simp(Iterator.iterate(ONE:Rexp)(r => ALT(r, r)).drop(20).next) == ONE) |
|
8 |
assert(matcher(EVIL_urban, "a" * 1000000) == false) |
|
9 |
assert(matcher(EVIL_urban, "a" * 1000000 ++ "b") == true) |