changeset 433 | 6af86ba1208f |
parent 403 | ffce7b61b446 |
child 475 | 59e005dcf163 |
432:de701b64a4e0 | 433:6af86ba1208f |
---|---|
1 import M3._ |
|
2 |
|
3 val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b')) |
|
4 |
|
5 |
|
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) |