Skip to content

Generate more comparison operator mutant variants - #644

Open
kjarosh wants to merge 1 commit into
sourcefrog:mainfrom
kjarosh:binary-op-variants
Open

Generate more comparison operator mutant variants#644
kjarosh wants to merge 1 commit into
sourcefrog:mainfrom
kjarosh:binary-op-variants

Conversation

@kjarosh

@kjarosh kjarosh commented Aug 30, 2026

Copy link
Copy Markdown

Operators < and > now also mutate to >= and <= respectively as a way of negating the condition.

Operators <= and >= now mutate to < and > as well to catch off-by-one errors.

While running cargo mutants on my repo I noticed few examples where these mutations would be useful!

Operators < and > now also mutate to >= and <= respectively as a way of
negating the condition.

Operators <= and >= now mutate to < and > as well to catch off-by-one
errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant