mutant icon indicating copy to clipboard operation
mutant copied to clipboard

[WIP] Failing tests for backref calls

Open dgollahon opened this issue 2 years ago • 1 comments

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.

dgollahon avatar Apr 25 '22 03:04 dgollahon

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).

jaynetics avatar Jun 19 '22 16:06 jaynetics

@dgollahon I think that these are not an issue anymore with #1361, right?

mbj avatar Jan 06 '23 22:01 mbj

@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.

mbj avatar Jan 08 '23 15:01 mbj