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

Fix small bugs #219

Closed
wants to merge 2 commits into from
Closed

Conversation

Kaivanov21
Copy link

@Kaivanov21 Kaivanov21 commented Sep 28, 2021

This pull request fixes the following issues:

  1. Fix [BUG] Sign on display doesn't change after division by zero or mod 0 #201
    -[BUG] Sign on display doesn't change after division by zero or mod 0

Now we don't allow to users to change/enter the sign after division/mod 0, it remains "÷" or "%" respectievly.
Users only can insert new denomiator for division operation.

  1. Fix [BUG] Sign wrong changing to plus after division by zero #202
    -[BUG] Sign wrong changing to plus after division by zero

The issue was caused by getSign() function, in which if lastOperation was not defined we assigned result to "+" in else branch of "when" statement
Now we don't allow to users to change the sign but only the denominator for division.

  1. Fix [BUG] Mod wrong result #204
    -[BUG] Mod wrong result

Now the result of the n%n% is zero.

  1. Fix [BUG] Crash after putting second sign after mod 0 #218
    -[BUG] Crash after putting second sign after mod 0

Now we do not allow to users to put any sign after displaying the error message in case of mod 0.
Users only can insert the second value for mod operation.


#201 and #202 fixed
ezgif com-gif-maker (4)

#204 fixed
ezgif com-gif-maker (5)

#218 fixed
ezgif com-gif-maker (7)

@tibbi
Copy link
Member

tibbi commented Nov 3, 2021

create pull requests one by one please, it is hard to test or maintain like this. Thanks

@tibbi tibbi closed this Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants