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 use split with "/" as a separator (actually //*/ to grab // too), so the address ending with "/" was giving me an empty string at the end of the array. I solved it by filtering out empy strings from the array. Interesting kata, thanks!
OK I've worked it out. It was actually the URL immediately preceding the first of the random ones that was throwing the error (www.agcpartners.co.uk/). What's confusing though is that the red error message describes the next URL (in this case the linkedin one that passed the test). It would be a lot clearer if the error message contained the URL that threw the error instead of the subsequent URL.
Having a strange issue. The first one of the random tests (after the message about linked in) always throws an error, even though it passes? So I have 46 passes, 0 fails, 1 error at the end:
TypeError: Cannot read property '0' of null
at Array.forEach
at generateBC
at Test.describe.randint
at Object.Test.describe
COMPLETEDIN::11
DESCRIBE::Random Tests
IT::Testing for generateBC('http://www.linkedin.it/for-in-by-eurasian-uber-biotechnology/app/pictures/index.php#bottom?previous=normalSearch&output=full', ' > ')
HOME > EUB > APP > PICTURES
Test Passed: Value == HOME > EUB > APP > PICTURES
This comment is hidden because it contains spoiler information about the solution
My code passes the test cases, but fails the random tests (JS).