Use Cucumber to test a calculator application. In the acceptance testing style, your focus should be the end user. Submit a pull request against your branch to turn in your assignment.
- Does the code run?
- Do the tests pass?
- Do the tests implemented in the classroom still work?
- Did you use the correct file structure specified for Cucumber?
- Did you use proper Ruby naming conventions?
- Do your tests have assertions?
- Did you use good variable naming (i.e. avoid use of single letter variables)
- should return an integer
- the order of operation should matter (not commutative)
- subtracting zero should return the first integer
- subtacting an integer from itself should return zero
- should accept more than 2 numbers at a time
- should return an integer
- the order of operation should not matter (commutative)
- multiplying an integer by one should return the first integer
- multiplying an integer by zero should return zero
- should accept more than 2 numbers at a time
- should return an integer
- the order of operation should matter (not commutative)
- dividing an integer by one should return the first integer
- dividing zero by an integer should return zero
- dividing an integer by zero should raise an error
- should accept more than 2 numbers at a time
To complete this assignment, you need to:
- Fork this repository
- Clone your fork onto your machine with
git clone https://github.com/YOUR_USERNAME/calculator-cucumber
- Write code
- Push your work to your forked repository with
git push
- Submit a pull request with YOUR NAME IN THE TITLE.
Leave a GitHub issue or email your instructor.