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

Create a calculator which only likes positive even numbers #7

Open
olliesilvester opened this issue Jul 9, 2024 · 0 comments
Open

Comments

@olliesilvester
Copy link
Owner

olliesilvester commented Jul 9, 2024

Create a calculator which accepts two user inputs:

  • If either of the user inputs are negative, or odd, raise a customised Exception
  • If the total is negative or odd, raise a customised Exception
  • Otherwise, return the total of the two user inputs
  • Handle error in an appropriate way if the user enters non-digits into the calculator

Write unit tests for all scenarios you can think of

Also manage this using a git branch

use MagicMock to test the user input (ask me about this when you get to it)

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

No branches or pull requests

1 participant