Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
LICENSE.txt
README.md
Rakefile

README.md

Unit tests

Feel free to fork and send pull requests to improve the tests.

Testing with rake

The rake gem is required (gem install rake).

Running all tests

rake

or:

rake test:all

Running all tests for a specific homework

rake test:hw1:all
rake test:hw2:all

Testing a single part

rake test:hw1:1           # Test part one - fun with strings
rake test:hw1:2           # Test part two - rock, paper, scissors
rake test:hw1:3           # Test part three - anagrams
rake test:hw1:4           # Test part four - basic OOP
rake test:hw1:5           # Test part five - advanced OOP

Testing without rake

Testing a single part

ruby -I lib test/hw1_part1_test.rb           # Test part one - fun with strings
ruby -I lib test/hw1_part2_test.rb           # Test part two - rock, paper, scissors
ruby -I lib test/hw1_part3_test.rb           # Test part three - anagrams
ruby -I lib test/hw1_part4_test.rb           # Test part four - basic OOP
ruby -I lib test/hw1_part5_test.rb           # Test part five - advanced OOP

Running a single test

ruby -I lib test/hw1_part1_test.rb -n "test_palindrome"
Something went wrong with that request. Please try again.