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.
descriptions :))))))) ??????????????????????
done
the JavaScript test suite uses the deprecated
Test
frameworkThe
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
.Tests in python report that they are testing for a certain
target_case
, but are often actually testing for a completely differenttarget_case
. (The actualtarget_case
passed to the user's function is different than thetarget_case
reported in theit
block message).Tests in python also run the user solution 3 times, followed by 3 tests, making logs look more confusing than they need to be if the user tries to log anything in their solution.
running
print(identifier, target_case)
produces the following output (The lines under "Log" are what my code printed, the other lines are theit
block messages:I think I'm making a mistake with the random tests, because 550 warriors were able to solve the task in Python:
This is the error message:
Can someone please help me?
Fixed.
Fixed.
Seems to be fixed by fork above, but limiting code length should not be done on a non-code-golf kata, especially when hardcoding the task is actually harder than writing a solution for it.
Funny kata on the ASCII art series, well done.
python new test frameworks
This comment is hidden because it contains spoiler information about the solution
Great Kata. Although I have had zero prior experience with Haskell, type families, datakinds, and GADTs -- whatever that may be -- I find this instructive, enjoyable, and somewhat challenging. This is a great introduction to the basics of mathematical logic. You need only to read between the lines, get the gist of what you're looking at, draw the picture in your head, and voila. Easy 2 kyu kata.
PHP test only throws:
Parse error: syntax error, unexpected '<', expecting end of file in /home/codewarrior/run.php on line 10
before my function is even called.
Loading more items...