Ad
  • Custom User Avatar

    Whoops, sorry about that I've moved it to the test cases.

  • Custom User Avatar

    Whoops, sorry about that I've moved it to the test cases.

  • Custom User Avatar

    Both are great points and I've updated to include them - thanks for all your help in this kata!

  • Custom User Avatar

    I think I have this resolved but I'll wait for confirmation! In the end I added a separate array containing only numbers to randomize from. I also changed the description to just say that non alphabetical characters can be removed entirely.

    Also are you in the current Founders and Coders cohort? I am applying for the summer in London!

  • Custom User Avatar

    Hey I had actually taken a shot at this but maybe my test cases are still not really adequate... The last 5 tests are randomly generated strings from a bank of uppercase and lowercase characters + an apostrophe.

    I noticed one of your solutions uses the number 72 so I just added numbers to the bank but it still passes. I don't really understand how your solution works but will keep experimenting!

  • Custom User Avatar

    Whew a little late but I have finally added random test cases + cleared up the punctuation explanation. I was linked to this article and found it really helpful! https://github.com/codingforeveryone/READMEs/blob/master/codewars/random-test-cases-for-complete-beginners.md

    Thanks again for the help and advice!

  • Custom User Avatar

    Thank you both! I've gone ahead and added more test cases. I haven't been able to find any examples in which folks were randomly generating appropriate types of strings, but would down to give it a shot if you could point me in the right direction!

    Do you think this kata would be better without the stipulations on word length and punctuation? I wanted to go for maximum realism and may have gotten carried away...