Muex.Mutator.InvertNegatives (Muex v0.8.0)

View Source

Mutator that inverts unary negation.

Replaces a unary negation with its operand:

  • -x -> x

This is the classic PITest "Invert Negatives" mutator. It targets only the unary minus ({:-, meta, [operand]}); binary subtraction (a - b) is left to the Muex.Mutator.Arithmetic mutator.