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.
I just did a version guessing using the most common patterns. It has most of the failures as the other solutions but with comments explicitly pointing out the issues.
You should be able to click 'View Solution' under my post to see it. If not then this link should work: https://www.codewars.com/kata/reviews/553a8bb91e0399d6f70001b9/groups/5ff1ed99f0bb620001b79f96
I'd be curious to see your solution in this case. :)
I suggest that the url
secure.ftp.g.cn
be added to the test suite.g
is the domain name.secure
andftp
are two subdomains and the TLD iscn
.The url is fictitious but g.cn is a real website while multiple sub-domains are a possibility.
Fair point. I deleted the comment without reading to start from a clean slate, before trying to find the schema names.
To have more than a single test?
The initial code is giving you all you're asking here:
A conditional block could be used in the kata description, but not everyone knows about them.
This comment is hidden because it contains spoiler information about the solution
There's two bugs with the random tests when using Python. Here's the code I used to get around the bugs.
Here's also a fix for the test script: