Ad
  • Custom User Avatar

    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.

  • Default User Avatar

    I tried to debug it in my vsCode with any possible kind of values and I didn't come up with any mistake now

    use the input that was used in the failing tests

  • Default User Avatar

    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.

  • Default User Avatar

    closing: non-issue and explained by @KataKitten

  • Default User Avatar

    closing: question with issue tag

  • Default User Avatar

    closing: not reproducible, not actionable, and probably caused by having the print somewhere that wasn't being executed. their code does print.

  • Default User Avatar

    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.

  • Default User Avatar

    closing since that's not an issue report. and that's a sample test that they're failing.

  • Default User Avatar

    I ran your code. no you don't.

  • Custom User Avatar

    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.

  • Default User Avatar

    I mean the test behaviour is messed up. not yours.
    and yes, your code is wrong.

  • Custom User Avatar

    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.

  • Default User Avatar

    to be fair that's messed up behaviour and maybe I'm only being pedantic

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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 an issue

  • Loading more items...