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.
I improved the random tests and the solution passes now.
Ok, sincere apologies, you were correct, I reopened the issue at the top of the page. the tests are indeed using reflection, i dont know why your code is failing
okay, i checked your code, you made the same mistake as me initially,
rollback()
has to support the entire history of versions, not just the last one. i think the description should make this clearerplease tag this as a
question
, not anissue
. it is very likely that the error comes from your code, not the tests suite, as 160+ people passed the Java version without complaints. are you making sure that your methods are chainable ?Yes, at least on Ruby. Well, it’s not so difficult, it’s more about attentiveness, the main thing is not to get confused in the code.
This comment is hidden because it contains spoiler information about the solution
That test expects
false
, nottrue
Thanks for the translation.
My original Java Kata also included a
random2
test. Please add that.Also input/output for all random tests same as the original Java, so that I can review it properly.
Thanks for the suggestions, I have incorporated them.