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.
This is an issue.
(By the way, your proposed
compareObjects
is bug-ridden.)Cool
It's an old one. Random tests were not yet a big thing in 2014.
Tests are now locked, so there will not be random tests.
Closing.
There are already 500 solves so this can't be done anymore. Sad but closing.
.
We need competent powerful users to add random tests to this kata in these languages:
Fixed
@CursedFlames @Abbe translated it to JavaScript :)
agree!
Many thanks for your work - well done:-)! It's approved;-)!
OK, I have added the random tests exactly as you suggested, including your (much more efficient) solution. Thanks again for your help with this! I'll mark the issue as resolved, but please let me know if anything still doesn't look right.
Thanks for your feedback. The instruction to round to two decimal places was already in the description, however.
As for your test code, I understand having to change the statement with Math.random to fit the range of values in my description, but what about the numbers in the first line of the function? Can I use the numbers in your example code, or must these also be changed to fit my kata?
I will read the guide that you mentioned. Thank you for linking to it!
This kata uses heavy meta-programming which Ruby is known for. JS could maybe do it using ES6 Proxies. Elixir might be another language that could pull this off.
It looks good to me. Thank you!
Loading more items...