Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Ruby fork with all the fixes. Please, review and approve (the author is inactive).
This comment is hidden because it contains spoiler information about the solution
Tests should use RSpec 3.0.
Tests should use
assert_equal
instead ofexpect
.The user can redefine
giftwrap
.Actual/expected values are flipped in the sample tests.
You need to return an integer, not a string.
✘ Got 34 from gift #1, expected 34.
✘ Got 22 from gift #2, expected 22.
✘ Got 94 from gift #3, expected 94.
✘ Got 59 from gift #4, expected 59.
✘ Got 87 from gift #5, expected 87.
✘ Got 28 from gift #6, expected 28.
✘ Got 62 from gift #7, expected 62.
✘ Got 71 from gift #8, expected 71.
✘ Got 5 from gift #9, expected 5.
✘ Got 47 from gift #10, expected 47.
What's this about? Why is this failing?
42 is only the correct answer for the example test...
Don't understand... I returned 42 but the tests failed. Also the test gave different failures even though I was running the same code...
The test provided as a sample (see below) is useless.
giftwrap
method is not available to the person solving the kata.Nice kata! Now I want it to be Christmas :)