Giter Site home page Giter Site logo

calculator-cucumber's Introduction

Calculator kata with Cucumber

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.

Grading

  1. Does the code run?
  2. Do the tests pass?
  3. Do the tests implemented in the classroom still work?
  4. Did you use the correct file structure specified for Cucumber?
  5. Did you use proper Ruby naming conventions?
  6. Do your tests have assertions?
  7. Did you use good variable naming (i.e. avoid use of single letter variables)

Acceptance Critera

Subtraction

  • 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

Multiplication

  • 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

Division

  • 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

Git

To complete this assignment, you need to:

  1. Fork this repository
  2. Clone your fork onto your machine with git clone https://github.com/YOUR_USERNAME/calculator-cucumber
  3. Write code
  4. Push your work to your forked repository with git push
  5. Submit a pull request with YOUR NAME IN THE TITLE.

Questions or Concerns

Leave a GitHub issue or email your instructor.

calculator-cucumber's People

Contributors

jdenen avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.