-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range mutator #2922
Comments
Not sure we should implement the edge increase/decrease mutations, we don't do this for any other mutator either. |
We could also add/remove the |
I do not think removing the 'relative to end' marker would create more interesting mutation than increment/decrement. |
Is your feature request related to a problem? Please describe.
Range operator expressions are not mutated at the moment. Even though this contains crucial logic sometimes.
Describe the solution you'd like
..
0
..end
..
..3
..2
..3
..4
start..
..
2..
1..
2..
3..
start..end
..
2..2
1..2
2..2
3..2
2..2
2..1
2..2
2..3
^start..
..
^2..
^1..
^2..
^3..
..^end
..
..^2
..^1
..^2
..^3
start..^end
..
2..^2
1..^2
2..^2
3..^2
2..^2
2..^1
2..^2
2..^3
^start..^end
..
^2..^2
^3..^2
^2..^2
^2..^1
So basically always replace with
..
and if the start or end value is a declared value, increase this by one and decrease by one (check for bounds).Additional context
See: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators#range-operator-
The text was updated successfully, but these errors were encountered: