Skip to content

yesmeck/saas-class

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Testing a single part

rake test:1           # Test part one - fun with strings
rake test:2           # Test part two - rock, paper, scissors
rake test:3           # Test part three - anagrams
rake test:4           # Test part four - basic OOP
rake test: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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%