Skip to content

Commit

Permalink
replace negate conditional with remove conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Coles committed Oct 6, 2021
1 parent 507010a commit 5a72b65
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Read all about it at http://pitest.org

## Releases

### 1.7.2 (unreleased)

* #943 Change default mutators - replace negate conditional with remove conditional

### 1.7.1

* #932 Improve switch mutation descriptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ public void register(Map<String, List<MethodMutatorFactory>> mutators) {
mutators.put("DEFAULTS", gather(mutators,"INVERT_NEGS",
"MATH",
"VOID_METHOD_CALLS",
"NEGATE_CONDITIONALS",
"REMOVE_CONDITIONALS_ORDER_ELSE",
"REMOVE_CONDITIONALS_EQUAL_ELSE",
"CONDITIONALS_BOUNDARY",
"INCREMENTS", "RETURNS"));

mutators.put("STRONGER", gather(mutators,"DEFAULTS",
"EXPERIMENTAL_SWITCH",
"REMOVE_CONDITIONALS_EQUAL_ELSE"));
"REMOVE_CONDITIONALS_ORDER_IF",
"REMOVE_CONDITIONALS_EQUAL_IF"));

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void providesRemoveSwitchGroup() {

@Test
public void providesDefaultsGroup() {
assertGroupHasSize("DEFAULTS", 11);
assertGroupHasSize("DEFAULTS", 12);
}

@Test
Expand All @@ -170,7 +170,7 @@ public void providesOldDefaultsGroup() {

@Test
public void providesStrongerGroup() {
assertGroupHasSize("STRONGER", 13);
assertGroupHasSize("STRONGER", 15);
}

@Test
Expand Down

0 comments on commit 5a72b65

Please sign in to comment.