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.
In the instructions it says you should evaluate values in the resulting expression.
Could you please clarify how division should be handled? It seems everywhere that we are supposed to work on integers but this test case -
diff("(/ x 2)"), "0.5"
- introduces floating point numbers and I'm not sure what's the logic behind it.Good catch. The tests ran for me while translating because the necessary imports were in my reference solution (and thus included via
use super::*
in the test fixture.Will fix that.
If you have the necessary priviledges, you could check and approve: https://www.codewars.com/kumite/60f32df3539c060026f8b297?sel=60f81f7e0b8fe9000752db70
I found one problem, commented in your translation discussion section!
Thanks for the translation!
I think you should import following in the tests:
The kata wouldn't let me submit without these (and I wasn't using them in my solution).