You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.
There should be a mutator that replaces numeric constants. I imagine the following variants:
constant 0
constant 1
subtract/add 1
this should catch some off-by-one errors.
Example: It would detect that the following function:
export function lessThan100(x: number): boolean {
if (x < 100) {
return true;
}
return false;
}
Is not appropriately tested by the following testcases:
describe('lessThan100', () => {
it('should detect which numbers are less than 100', () => {
expect(lessThan100(100)).toEqual(false);
expect(lessThan100(98)).toEqual(true);
});
});
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There should be a mutator that replaces numeric constants. I imagine the following variants:
this should catch some off-by-one errors.
Example: It would detect that the following function:
Is not appropriately tested by the following testcases:
The text was updated successfully, but these errors were encountered: