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.
Fixed for python
approved
approved then, thx :)
Done.
Seems fine, but maybe you should transfer the test with big array
a
fromSmall random Test Cases
section to fixed cases, for consistencyThis comment is hidden because it contains spoiler information about the solution
In the random tests, the assertion message always shows the user result as a string, even when it isn't one.
You can use the inspect method:
Strings are mutable in Ruby.
In the random tests, you can pass a string copy to the user solution, so the
input
string shown in the assertion message is not affected by user solution.Custom messages in the sample / fixed tests are hiding the user solutions.
Instead of more useful messages like:
The user can only see:
So solvers will have to manually print out their result to debug their code (expected solutions are still visible in the it message)
You can remove the assertion messages in the fixed tests, to display the user result.
This comment is hidden because it contains spoiler information about the solution
Python does not test this case at all
Upgraded the version from 8.1.3 to 18; improved test structure and added lodash instead of
Math.random
(with Katafix)resolved for all languages
resolved for all languages (+ resolved the problem with pseudo-random tests as well)
Yeah, it should be, so that would be better fitting to its name.
Made a fix with adding such details to description, seems like to be explained enough.
Loading more items...