Thinking Small to Move Fast With Quality
Given a short URL that doesn't exist
And an external domain
When I navigate to the short URL
Then I should get a 404
@Test
public void testMyMethod() {
myObject.myMethod(null, null, null);
}
@Implementation
public int inRange(int min, int max, int valueToTest) {
return valueToTest >= min && valueToTest <= max;
}
@Test
public void testMyMethod() {
myObject.myMethod(null, null, null);
}
/* Failed mutation 1 ->
changing `valueToTest >= min` to `valueToTest < min` did not cause test to fail
*/
/* Failed mutation 2 ->
changing `valueToTest <= max` to `valueToTest > max` did not cause test to fail
*/
/* Failed mutation 3 ->
changing `valueToTest >= min && valueToTest <= max` to
`valueToTest >= min NAND valueToTest <= max` did not cause the test to fail
/*