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 will consider "0" < "5" (same with "1", "2", "3", and "4")
Your examples in the "input" section appear to be from the JavasScript version of this kata (given the use of
var
) and would lead someone to believe you are using symbols as your keys. For example:{ firstName: 'Nikau', lastName: 'R.', country: 'New Zealand', continent: 'Oceania', age: 39, language: 'Ruby' }
In case you are not familiar with this style of litereal hash formatting, this is the same as:
{ :firstName => 'Nikau', :lastName => 'R.', :country => 'New Zealand', :continent => 'Oceania', :age => 39, :language => 'Ruby' }
However your test cases use
String
keys and snake case for the keys. Example:{ "first_name" => "Nikau", "last_name" => 'R.', "country" => "New Zealand", "continent" => "Oceania", "age" => 39, "language" => "Ruby" }
If you were not intending on having the kata practice handling both
Symbol
andString
keys (as well as the different cases) then you should update the input to follow the expected keys. The description says that the test cases will follow exactly the form shown.