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.
So it is an inline conditional... here is an article explaining it better than I could.. :)
https://www.natashatherobot.com/ruby-shorthands-if-then-else/
I think there is a bug in the ruby implementation as when the random test I get the following error:
expected '0' got '1'... when I looked into this the error was caused by the equation "x-66" with a point value of "0"
Unless I am very much mistaken the differential of x is 1 not 0. Please update as required.
I am getting a very annoying and totally unexpected error:
I have no idea why I am getting this or what is causing it. I feel like I have followed the instructions, any help would be appriciated.
Also, I why does the ruby imnplementation need to use an integer representation, but the test output want a string..
The following test could be added for completeness:
As currently code can that passes all your tests can fail this one. :P
So to confirm, the test fails saying it expects 440, my code generates a value of 470 which looking at the test data appears correct.
Should the result of the last test be 440 or 470?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution