Skip to content

Fixed issue #261 of 0√ - #267

Merged
tibbi merged 1 commit into
SimpleMobileTools:masterfrom
rsb-23:Issue-#261-fix
Jul 4, 2022
Merged

Fixed issue #261 of 0√#267
tibbi merged 1 commit into
SimpleMobileTools:masterfrom
rsb-23:Issue-#261-fix

Conversation

@rsb-23

@rsb-23 rsb-23 commented Jul 3, 2022

Copy link
Copy Markdown
Contributor

Cause :
lastKey was not updated when newValue became null on clear C.
Hence lastKey validation at line 95 if (lastKey != DIGIT) { failed.
Fix :
lastKey should be CLEAR , whenever newValue becomes null or 0 after C.

TestCases:

  1. Start calc > C >
  2. Hold C > 5*0 > + > C >

Cause : lastKey was not updated when newValue became "". Hence lastKey validation at line 95 failed.
@tibbi

tibbi commented Jul 4, 2022

Copy link
Copy Markdown
Contributor

ye thanks, this looks good

@tibbi
tibbi merged commit 7e33f9a into SimpleMobileTools:master Jul 4, 2022
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.

2 participants