Giter Club home page Giter Club logo

thewillhuang / travistesting Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 156 KB

Once you've tried testing, you need to try to do something more interesting. We want a Counter object with responsibilities increment() getValue() where the first adds one to the counter, and the second gives you back the current count. The constructor function should take no arguments, but set the initial count to zero. This requires a slightly different construction than we had before – we need a variable in the scope of the function, but that is not a parameter. So, specs: As a developer, I expect that the counter value will be zero after the object is created. As a developer, I expect that the counter value after an increment() will be one more than before. Add tests, and a http://TravisCI.org (Links to an external site.) badge to one of your repos' README that proves your tests pass.

JavaScript 100.00%

travistesting's Introduction

We want a Counter object with responsibilities increment() getValue() where the first adds one to the counter, and the second gives you back the current count. The constructor function should take no arguments, but set the initial count to zero. This requires a slightly different construction than we had before – we need a variable in the scope of the function, but that is not a parameter.

So, specs:

As a developer, I expect that the counter value will be zero after the object is created. As a developer, I expect that the counter value after an increment() will be one more than before.

Add tests, and a http://TravisCI.org (Links to an external site.) badge to one of your repos' README that proves your tests pass.

Tutorial: http://code.tutsplus.com/tutorials/travis-ci-what-why-how--net-34771 (Links to an external site.)

Submit a link to your PR on your own repo.

travistesting's People

Contributors

thewillhuang 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.