Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change DecrementInteger and IncrementInteger mutators behaviour #1351

Merged
merged 1 commit into from Oct 19, 2020

Conversation

sidz
Copy link
Member

@sidz sidz commented Oct 18, 2020

Found an interesting issues while worked with #1347 that:

  • DecrementInteger mutator generates wrong mutation with negative values: -1 was mutated to -0 instead of -2
  • IncrementIngeger mutator generates wrong mutation with negative values: -1 was mutated to -2 instead of 0

This PR fixes behavior for both mutators and now DecrementInteger will return -2 for case when original value is -1 and IncrementIngeger returns 0 for case when original value is -1

…stead of -2. Change IncrementInteger mutator behaviour when -1 is mutated to -2
@maks-rafalko maks-rafalko merged commit c0006f1 into master Oct 19, 2020
@maks-rafalko maks-rafalko deleted the change-decrement-increment-mutators-behaviour branch October 19, 2020 04:38
@maks-rafalko
Copy link
Member

👍 Thanks @sidz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants