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 9310c2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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", 14);
}

@Test
Expand Down

0 comments on commit 9310c2e

Please sign in to comment.