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.
python new test framework is required. updated in this fork
This kata expects 1 group of zeroes to be contracted to
::
, which violates the actual IPv6 spec: when there is only 1 group of zeroes0
is retained instead of::
.(This applies to both at the ends and at the middle.)
This kata is a duplicate of https://www.codewars.com/kata/54fa4e210609868fce0002bf
And this kata's test cases are less comprehensive as https://www.codewars.com/kata/5722d87c785220f5780013cf (there are some edge cases that only exists in that kata)
Needs random tests.
I just wanted to say, in the instructions you said "009C:0000:120A can be written as 9C::120A", that's wrong as seen in this RFC : https://datatracker.ietf.org/doc/html/rfc5952#section-4.2.2
You cannot shorten an IPv6 address with only a single zero hextet.
Please use new python test framework.