Ad
  • Custom User Avatar

    Hey, I fixed the typo with the edit button but it showed me an orange banner saying Kumite was a publihed with failed tests so I made a fork with the exact same code which doesn't show the banner.

    Also, thanks for the %q "tip". Will use it (not in this fork as I judged it not necessary but please say so if I should).

  • Custom User Avatar

    There's a typo at the line 79 (table.insert(cases, { str = str, prefix = shuffled, expected = false });) in the test cases. prefix = shuffled should be prefix = prefix. This makes the test cases generate nil.

    Also, you may use %q to format strings. For strings, %q is basically the same as "%s", but with escape sequences when necessary.

  • Custom User Avatar

    Oh yeah, my bad, I forgot. I'll do that next time. Thank you for your time !

    Edit: Actually, when I press TRAIN AGAIN, the Sampe Tests are not updated and when I press Attempt, the it messages are updated but I still get the error with the call of the function. Could it be because of the fork ? How can I resolve this ? When I fork on the kata page, I get the updated code.

    Second edit: When I reset on the training page, I get the updated code and there are no error at all. But when I leave the kata and train again, the non-updated code reappear.

    Seems like it updated successfully after all

  • Custom User Avatar

    When fixing an issue on an approved, working translation, please remember to not fork the old translation, but use the Fork button on the kata page.

  • Custom User Avatar

    Translation resolving this issue (only Lua obviously).

    • Added random cases with some specific cases
    • Corrected function's name which doesn't throw errors anymore
    • Added tester function to provide user information
  • Custom User Avatar

    Approved.

  • Custom User Avatar

    Fixed.

  • Custom User Avatar

    I mean, the same solution of mine passes and fails testing.
    The solution passed testing on about the third try without any code changes.

  • Custom User Avatar

    What do you mean by corrupted?

    For the input "DlVDh", "dl-v-dh" is the correct output, not "dl-vdh".

  • Custom User Avatar

    Javascript
    Corrupted random tests.
    I passed the test on the third try.
    My solution

    On my first try I got this feedback:
    input: DlVDh
    Expected: 'dl-v-dh', instead got: 'dl-vdh'

  • Custom User Avatar

    Your function should return array of four digits. Value 'matches' is respond to that return.

  • Custom User Avatar
  • Custom User Avatar

    Maybe today is the day.

  • Custom User Avatar
  • Custom User Avatar
  • Loading more items...