The goal of the exercise is to make all the failing. You can do it exercise in either Javascript or Ruby.
To get the tests running in Ruby:
cd javascript
- Run
make bootstrap
(npm install
) to setup your environment. This doesn't install Node or npm – you may need to set these up yourself - Run
make test
(npm test
) – you should see many failing tests. The tests live intest/index.spec.js
. Start at the top of the file, and make each test pass by implementing the methods defined inlib/index.js
. The exercise is complete when all tests pass.
To get the tests running in Ruby:
cd ruby
- Run
make bootstrap
(bundle install
) to setup your environment. This doesn't install Ruby or Bundler – you may need to set these up yourself. - Run
make test
(bundle exec ruby test/test_unit.rb
) – you should see many failing tests. The tests live intest/test_unit.rb
. Start at the top of the file, and make each test pass by implementing the methods defined inlib/exercise.rb
. The exercise is complete when all tests pass.