Red, green, refactor example
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
README.md
package.json

README.md

Multiset

A JS multiset library.

There are no docs on how to use this library so you will just have to read the tests ;)

Red, Green, Refactor

This is a good example of Red, Green, Refactor. Though you can't see any red, (because we commit after the green), you can see that each new feature comes with new tests. Look at the commits to see how this works.

There are also some refactor commits in here. Refactor commits do not need new specs as long as the previous coverage is good.

Running the tests

If you are interesting in playing with the code and running the tests, you may either simply run mocha test/multiset.js in this directory or open test/runner.html in the browser.

Don't forget to npm install first!