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.
No worries.
This comment is hidden because it contains spoiler information about the solution
That's much better! Thanx again! :-)
Fork which omits the codewars_test message
I think you can
test.fail
to get only a custom message.Approved by someone
Sorry, had to adapt to intermediate changes in Python version. It wouldn't take your translation easily, therefor the fork. Scala translation is up - Thank you very much for that!
Why did you fork only to change nothing? All you've done is prevent me from editing the original.
I think the failure messages have to be improved...
Resolved. Thanx a lot for the Scala translation! I learned a lot from your test code refactoring and adjusted the Python tests to display better debugging information. The only thing I couldn't get right is that I couldn't suppress/replace the standard output of pythons codewars_test suite. It is always appended to my custom error/debugging messages.
Python should have an explicit
from preloaded import alpha
in the solution setup.Scala translation
Very nice, thank you very much!
I've fixed the Rust version
For future reference:
mod preloaded
belongs in the tests section, not the user solution. Static and constant values should be UPPERCASE (also in Python, but I'm not dealing with that). Non-const values (such as HashMaps, which require allocation) need wrapping in alazy_static
. It's a bit tedious.Note that when I solved this in Python, I didn't even see the mention of the preloaded map, and created my own. Wasn't that much of a hassle, and I preferred a different layout anyway.
Loading more items...