Ad
  • Default User Avatar

    Thanks for the edit

  • Custom User Avatar

    I agree that the current description is ambiguous & lacks the definition of "earliest match"

    There was a discussion about this:

    So with "earliest match" you mean the match that completes leftmost in the search string.

    This will, of course, not work for search strings that have the same last letter, but this kata does not have those.

  • Default User Avatar

    Error in random tests in Python

    meme = 'lD yGVp{e}Luuyo [B]lp{d}kpOVRYVe[U] vzfb {I}BjdEhM[G]uUYyNzzBNlAg{T}bGAqx{S}gw UYVbH rEWxsMKIK'
    'Danik' should equal 'Roma'  ## Wrong
    # edITS is before BUG
    

    The description is ambiguous:

    IT meme has letters b, u, g.
    Chemistry meme has letters b, o, o, m.
    Design meme has letters e, d, i, t, s.
    If there is more than 1 possible answer, the earliest match should be chosen.

    What is an earlier match? Earlier name in the description or lowest index in the string?

  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Custom User Avatar

    No problem, glad you could solve it.

  • Custom User Avatar

    Thank you Chrono, your console.log() suggestion actually helped me fish out the last of the bugs. I appreciate it.

  • Custom User Avatar

    Write console.log(meme); as the first line of your function.

  • Custom User Avatar

    I can't see the tests, how do I know the input it is failing on?

  • Custom User Avatar

    There are several users answering questions for katas that aren't theirs (don't expect an instant answer, people do other things too). Have you tried to use console.log and checking what the input is for the failed tests?

  • Custom User Avatar

    anyone? ffs why does no one ever help with things on this site?

  • Custom User Avatar

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

  • Custom User Avatar

    Text was rewritten by moderator, so it became clearlier, I think

  • Custom User Avatar

    Translation approved

  • Custom User Avatar

    So with "earliest match" you mean the match that completes leftmost in the search string.

    This will, of course, not work for search strings that have the same last letter, but this kata does not have those.

  • Custom User Avatar

    Python translation. Please, review and approve.

  • Loading more items...