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 small issue in error notice for random test.
Thank you for the fast review and original kata!
Can anybody approve Elixir translation?
can anybody review translation?
Can anybody approve the translation?
updated test order
updated test order
Precise format is next:
So, in the code line it shows failed line. Then lhs provides user code result and rhs shows expected value. That's why I didn't add any explain message for random test. ExUnit takes care of it.
Changed test order - simple first, random last.
@bkaes, swapped test order. If somebody returns something weird, it shows(even for random test) the failed test line - literally, how it's in the code, and also failed values - what it expects to have and what it really received. So, a user will have all info to understand what values caused failure.
By some reason Solution formatting is different from what I did in the edit form.
As noticed by @bkaes, random tests generate negative numbers and some various answers for them. The only way to solve the kata, is to find out original solution and make it generate numbers for negative cases in the same way. Very sad experience :(
Can somebody fix wrong spec?
This comment is hidden because it contains spoiler information about the solution