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.
man I gotta say...super beautiful thinking. Amazing answer and amazing solution.
I did the same calculus, but you put it so, so beautifully in code. So clean.
All the respect man.
use the input that was used in the failing tests
can't do anything with this issue since it doesn't provide a way to reproduce the problem
(also I'm struggling to understand what the problem is here)
your class should raise an exception when the input isn't a valid kata rank. doesn't matter whether or not your user rank is already 8.
closing: non-issue and explained by @KataKitten
closing: question with issue tag
closing: not reproducible, not actionable, and probably caused by having the print somewhere that wasn't being executed. their code does print.
closing: they're describing a fixed test, but there is no such fixed test. there's a similar but different one. also, their last submission passes.
closing since that's not an issue report. and that's a sample test that they're failing.
I ran your code. no you don't.
I checked it and indeed it was wrong. I corrected the part where I should not let the rank become 0 or ever greater than 8. My code now passes all the tests when I "test" it, but when I attempt it, 1/3 of the tests always fail. I tried to debug it in my vsCode with any possible kind of values and I didn't come up with any mistake now. Do you have any advice? Is still anything wrong with my code? Or it's just the tests now who behave wrongly? If there's any mistake in my code, I would really appreciate a hint about it.
I mean the test behaviour is messed up. not yours.
and yes, your code is wrong.
I am sorry, it's the first time I am writing on this website, but "messed up behaviour"? Take it easier, man :)). Just didn't know about what you just said. I tried everything, also saw A LOT of "issue" messages posted on this problem, so thought it really is an issue. Never saw so many comments labeled as "issue" before this one. I will surely follow your advice from now on, but still - can't see any problem with my code at all, and it still fails (like many on this page), and I stared at my code for a very long time. PS even tried chatGPT to see if I miss something, and guess. It doesn't spot any errors in my code. (Provided the assignment and my code). So yea, maybe this kata should use engineering? If not, I am sorry. I will, though, take this problem and the test-cases and try to debug it in my VSCode.
to be fair that's messed up behaviour and maybe I'm only being pedantic
This comment is hidden because it contains spoiler information about the solution
use
question
tag or no tag to ask questions.issue
is for reporting things that need to be changed about the kata, and if you suspect something is wrong with the kata but don't know what exactly happened then that still isn't anissue
Loading more items...