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.
On top of the below, the tests are pathetically weak: see this and this. It doesn't even check if
GivesTo
is a person.The actual test consists of one fixed test case.
This isn't really a kata, this is a puzzle question. It requires the user to find the solution of the given question. It isn't suitable as a kata unless the input is generalized.
Fun small-scoped kata. It's really is one of those challenges that you run across in practice.
Very tiny improvement: fix the typo in
test_it_wont_assign_people_to_who_they_gifts_to_last_year
totest_it_wont_assign_people_to_who_they_gave_to_last_year
.