Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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'}]"
"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.
Your solution returns incorrect answer for input:
[1, 7]
and[1, 8]
.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.
Got it... thank you for that
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.
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???
definitely no need for a staticmethod and class in the Python version
Really bad naming conventions for Python
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.