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.
Ok, does that sounds better?
"John has a superstition, after finishing a daily reading, if the last page read that day is odd, he reads one more page. This does not interfere with the daily reading pattern."
"whenever the last page read in his daily reading is odd"
Thanks for the effort.
Now it's fine.
I improved code repetition, and now it displays a more descriptive message so that in random and basic tests it is possible to know the values being read.
The messages you have added are not helpful. It should give the inputs. Something like
With expectedWeight = ..., weight = ..., etc.
.It's better to create a separated function to avoid repetition of code.
Something like:
and then replace the tests with
And you can use the same function in both fixed and random tests.
Sorry, I completely forgot about the basic tests, I had just modified the random ones, now it's ok for me.
I see no change in sample tests (and I cannot see the random ones since I have not solved the kata). I think you cannot republish your kata as long as it has at least two issues opened (I don't know exactly the process, but I know it returns to draft if a two issues are raised at one moment).
Ok, I added some error messages, and clicked save, I couldn't republish my kata again, am I doing it right?
The issue below is not fixed. Please don't close issues until they have been fixed.
Thank you for your support!
expected false to equal true
-> such logs are not helpful for the user since it gives him no idea of the values being tested. Please refer to the documentation to set on good log messages.Thanks, can you test again?
Random test should match user result with result from your reference solution and not just do type checking.
https://www.codewars.com/kata/reviews/64ea278eb070c300014228da/groups/64ea2c455acbd500016c20f5
wow
Loading more items...