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.
They both serve a purpose. The text is better for direct eyeballing while the string literals are better for copying for further testing/debugging. If one of them was to be removed it's 1, because it is less exact. But there's no need for that, is there. It's not like it's in the way. What can be done though is to combine them by line breaking string literals in some way such that it can still be copied and evaluated, for example:
.. the real problem here in my opinion is that the input text isn't a string literal
The
target_case
listed by the tests is currently inaccurate for python. In your example, the test says it's testing for atarget_case
ofcamel
, but the listed expected value ofjklmn_j_l_m_j_k_lijklm
suggests that it's actually testing for atarget_case
ofsnake
. This probably sent you looking in the wrong place for a bug in your code. I would suggest printing the inputs for now so you can correctly debug your solution and hopefully someone will fix the tests soon.As for the actual problem in your code, your code is failing tests where the input is
camelCase
and thetarget_case
issnake
.