mutant
mutant copied to clipboard
[WIP] Failing tests for backref calls
These all independently crash the unit tests.
I left 4 tests commented out since they seem to be invalid regexps, but there still may be a need to map them. I'm not sure how to construct a valid example off the top of my head.
It might make sense to try to auto-generate regexp specs based off of the calls to shared examples in the regexp parser spec files.
a valid example for full pattern recursion (\g<0>
) could be:
/a(b|\g<0>)/
(which is equivalent to /a+b/
)
the references -n
, +n
are a relative index of a preceding/succeeding group, so a valid example could be:
/\g<+1>(abc)/
(which matches abcabc
).
@dgollahon I think that these are not an issue anymore with #1361, right?
@dgollahon I just tested all of this examples they produce good mutations since 0.11.18. Since we do not have mutations specific to this AST structures I'm closing this without porting the tests into the test suite.