Ad
  • Default User Avatar

    The expected test results should probably be more like:
    "[{'name': '1', 'id': '1'}, {'name': '2', 'id': '2'}, {'name': '3', 'id': '3'}, {'name': '4', 'id': '4'}]"

  • Default User Avatar

    "Any combination of three or more letters in upper case will be considered an acronym."

    Therefore in the Python random tests... shouldn't the test case for "M. ATpcqg EOD. mFsUUS" return"
    "UUS is an acronym. I do not like acronyms. Please remove them from your email."

    Another example: 'EOD ImFTWG CuG. DP. txiiEY. CTA kLx. FSAzk. TuvxSUAy oLRS. SWOT NRN.'

    My code returns
    "FTWG is an acronym. I do not like acronyms. Please remove them from your email."

    But the tests result says,

    "It should work for random inputs too: 'FTWG is an acronym. I do not like acronyms. Please remove them from your email.' should equal 'The end of the day ImFTWG CuG. DP. TxiiEY. Call to action kLx. FSAzk. TuvxSUAy oLRS. Strengths, weaknesses, opportunities and threats no reply necessary.".

    I'll be continuing to the next Kata now thanks.

  • Custom User Avatar

    Your solution returns incorrect answer for input: [1, 7] and [1, 8].

  • Default User Avatar

    I am curious if maybe something is incorrect with the python tests?

    My solution passes all "larger numbers" and passes all "random tests". But in the "Smaller Tests" it fails only one test. I cannot see what is being tested though.

  • Default User Avatar

    Got it... thank you for that

  • Default User Avatar

    When the CAPS key has been pressed, uppercase gets swapped with lowercase and vice versa.

    As for the error messages, they don't show the input, only what is expected and what they got from your solution.

    You can view the input by trying to print to the console.

    BTW, you should look through some other comments to see if anyone has had the same problem in the past.

  • Default User Avatar

    The basic three examples pass with my solution. But the random tests (for Python) seem really messed up.
    For example, why should 'BBBbB' equal 'BBbbB'? There should be no change in the output string because there is no 'a' or 'A' in the string. Therefore the CAPS key is never pressed. There are dozens of these unless I am misunderstanding the problem.
    Another example: 'ONCSQ1DuddDnOXY' should equal 'OnCSq1DuddDnOxy'. What???

  • Default User Avatar

    definitely no need for a staticmethod and class in the Python version

  • Default User Avatar

    Really bad naming conventions for Python

  • Default User Avatar

    how is this voted best practices? It iterates through the entire list twice, when in reality most circumstances you don't even have to make one complete iteration of the list. Also, the list is renamed to int which is also pretty bad practice.