Ad
  • Custom User Avatar

    Great, the description looks much better now.

    And thanks for the tips. I'll try the other alignments at some point.

  • Custom User Avatar

    Excellent, thanks very much for your help!

    I've made the suggested changes re specifying alphanumeric characters (and underscores).

    Yes, I was expecting your solution might be significantly more elegant than mine.... Very nice.. I've rearranged my comments so that they fit better - let me know if they're still too wide. I'll try to make my solution shorter when I've got time.

    So the kata needs to get five approval votes now?

  • Custom User Avatar

    Hi!

    So I think I've sorted out the problems you were having last week... I'd be very grateful if you could take another look.

    I've taken the bleeping diacritics out. :-)

    I've formatted the submit tests in the same way as the example tests, so that they print the expected results and the results given.

    I've sorted out the problems with the tests with 'niche' and 'things' that you pointed out. In doing so, I've also added a new rule to account for words that are already hyphenated, and then altered my code to account for this: lines can now be broken after hyphens in words that are already hyphenated, if appropriate.

    I've added a couple more tests to the example tests, one to test hyphenated words are being processed correctly, and one to test that spaced en-dashes are being processed correctly.

    And I've carefully manually checked that all the tests, including the random tests, are using the right expected answers.

    So I'm really hoping that everything is fixed now!

    Let me know how it goes...

    Cheers

  • Custom User Avatar

    Ha, I know, maybe I'll pick something easier for my next one :)

    Yep, thanks, I should get round to it this week.

  • Custom User Avatar

    Hi, thanks for trying it and for your help. Sorry if there were some annoying parts; however, please bear in mind that I am very new to coding and that this is my first kata.

    I agree about the diacritics. I'll take them out of the equation.

    I'll also fix the problem with 'niche' and 'things', and format the submit tests in the same way as the example tests.

  • Custom User Avatar
  • Custom User Avatar

    Oh, that's strange, the example tests seem to be working for me... I've hardcoded the correct answer in to each test. And when I submit my solution, it passes all the example tests. Do you need to reset the kata to see my changes? (If you haven't already done this).

    Or is there a different problem with the example tests that I'm not seeing somehow?

    Ha, glad you found the texts entertaining! :)

  • Custom User Avatar

    Thanks for your help! I think I've sorted out the tests now. Let me know if I've missed anything or if anything else would be helpful.

    Cheers!

  • Custom User Avatar

    Improved tests added... Any feedback would be greatly appreciated.

  • Custom User Avatar

    Improved tests added... Any feedback would be greatly appreciated.

  • Custom User Avatar
  • Custom User Avatar

    thanks - I'll sort that out...