Exavier.Mutators.NegateConditionals (exavier v0.3.0)
Mutates conditional operators into their opposite.
Conditionals are replaced according to the table below.
Original | Mutation |
---|---|
== | != |
!= | == |
<= | > |
>= | < |
< | >= |
> | <= |
For example:
if a == b {
// do something
}
will be mutated into
if a != b {
// do something
}