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.
Tests should use
expectinstead ofassert_equal.Fixed in your fork
Fixed in your fork
Fixed in your fork
Fixed in your fork
Fixed in your fork
Input range: 1..100 --> 1..1000
Number of random tests: 10 --> 100
0 --> 51+ out of 122 solutions invalidated
Approved
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_equalinstead 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...
Loading more items...