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.
Whoops, you're right. I had misread the intention of this section when writing this kata: RFC 6052 Section 2.2 https://tools.ietf.org/html/rfc6052#section-2.2
RFC 4291 Section 2.2 describes the 32 bits rule: https://tools.ietf.org/html/rfc4291#section-2.2
I've removed the invalid test case.
String#match returns either nil or MatchData. The double !! turns the nil into false and the MatchData into true, so the method will always return a boolean.
Good point, I changed the wording to:
This comment is hidden because it contains spoiler information about the solution
My solution passed, despite violating the "add a new key as a symbol if it doesn't exist yet" rule. I don't see a test case for that at all.