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

Develop ronald rios frontend #73

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ronaldris21
Copy link

Every case is passes from the Notion cases covered:
You can use your keyboard keys instead of directly clicking.

Cases covered:

  • Positive and negative integer arithmetic operations:
    • -1 + -1 = -2
    • -1 + 1 = 0
    • 1 + 1 = 2
    • 1 + -1 = 0
    • -2 * 1 = -2
    • 2 * 1 = 2
    • 2 * -1 = -2
    • 2 * 1 = 2
    • 22 - 5 = 17
    • -22 - 5 = -27
    • 22 / 2 = 11
    • 22 / -2 = -11
    • -22 / 2 = -11``
    • -22 / -2 = 11
  • Division and multiplication with no previous operands will assume operand of zero and return zero:
    • *num = 0
    • / num = 0
  • Multiple operations will be chained and display updated result upon entering next operator key.
    • 3 + 5 + (8)...
  • Incomplete operations will ignore the last operator and display final result. Note: This is also the only possible error handled.
    • 3 + 5 + = 8
  • Division by zero will return Error
    • num / 0 = Error

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.

1 participant