Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Thanks a lot! Applied your corrections.

  • Custom User Avatar

    Thank you very much for supporting my kata :) Actually it was a test task on my first job interview and I failed it :))) Yep, I agree with you that tests in this kata are not realy good, but they work after all :) I can't even imagine myself sitting and hardcoding all that lines and numbers :) I would appreciate if you give me some clue how it could bo done in a "normal" way :))

  • Custom User Avatar

    Excelent kata! Had a lot of fan and sleepless nights :) You've made a great job! I only need voice my concern about two single quotes that should be escaped as a single quote. I didn't know about that and a bit stuck trying to figure out what the heck is going on here. I should read kata description more carefuly next time... Anyways, thanks a lot for all the great work you're duing here!

  • Custom User Avatar

    Yep, it seems this kata has been broken somehow... Frankly I have no clues what happened and why it doesn't work at the moment. Sorry for wasting your time guys... Will try to fix that.

  • Custom User Avatar

    Are you sure that your random tests are correct? I have no idea why it expects false when the ticket is not used and the code is correct. I use closures so there are no ways to change used param directly. Please give me some clue what I'm duing wrong.
    P.S. I read the comments below and they didn't help.

  • Custom User Avatar

    Great kata, but why do you pass a list of arguments into the invoke function as array .invoke([arg1, arg2 ...])? I guess it would be better to pass arguments as usual .invoke(arg1, arg2 ...)

  • Custom User Avatar

    I've tried to past my solution which I made few month ago, and it doesn't work at all. Just empty screen with title 'Nope, try again'. I guess codewars' guys may change something in the engine and this kata becomes invalid or something like that... Hopefully they will fix this issue because kata is really cool :(

  • Custom User Avatar

    Oh, sure, it seems I got it.

    Strings with one word do not need gaps ('somelongword\n').
    

    I guess the problem with the single word lines. You don't need to feel the rest of spaces, just put \n right after the word.

  • Custom User Avatar

    Are you sure that you implemented this rule?

    Last line should not be justified, use only one space between words.
    
  • Custom User Avatar

    Yep, it's my fault. Test annoation is not correct for the last line. I've fixed this test case and now it should work properly, please try again. If you changed nothing from the last revision you should get such message:

    Line length is not equal 11 - Expected: 11, instead got: 15

  • Custom User Avatar

    Could you please try another time? It seems the bug is already fixed, but I'm not sure.

  • Custom User Avatar

    Thanks for the comment. Seems it's not my bug. I've sent a bug report to codewars' guys. I'll notice you when this issue is fixed.

  • Custom User Avatar

    You've lost the last word dolor.

  • Custom User Avatar

    Oh, yeah, thank you very much for the help. Added your test :)

  • Loading more items...