| Test for regression against Yarr Interpreter is hanging in some cases of look-ahead regex patterns. It also tests some other related expressions. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| PASS /(?:(?=x))+/.exec("x") is [""] |
| PASS /(?:a?)*/.exec("a") is ["a"] |
| PASS /(a|ab)*/.exec("abab") is ["a","a"] |
| PASS /(ab)+/.exec("abab") is ["abab","ab"] |
| FAIL /(|ab)*/.exec("ab") should be ab,ab. Was ,. |
| FAIL /(?:(|ab)*)/.exec("ab") should be ab,ab. Was ,. |
| FAIL /(?:(|ab)+)/.exec("ab") should be ab,ab. Was ,. |
| FAIL /(|ab)+/.exec("abab") should be abab,ab. Was ,. |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |