Ad
  • Custom User Avatar

    The precedence of = is lower than that of +. You should be parsing hijwpyk = 73 + 44 as hijwpyk = (73 + 44) not as (hijwpyk = 73) + 44.

    It looks like the error message has the "expected" and "received" backwards -- that is, your code said 73, but the expected value is 117.

  • Custom User Avatar

    just gotta hardcode that specific case

  • Custom User Avatar

    Kata is still unsolvable at time of this comment due to this issue.

  • Custom User Avatar

    But my solution isn't there

    Now, you can find it.

    Particularly loved that as I progressed, my code got betterer and betterer.

    this means you solved it the hard way. x)
    Kudos!

  • Custom User Avatar

    you can fork your previously passing solution (it should already be visible in the solutions page) and work there wih your updated code. This way you can also see the tests.

  • Custom User Avatar

    Hello,

    The expected output in the full test suite is effectively the following (mnius new lines):

    expected = ["""
    +--------------+
    |              |
    |        +---+ |
    |        |   | |
    |        +---+ |
    +--------------+
    """,
    """
    ++
    ||
    ++
    """,
    """
    +--+
    |  |
    +--+
    """,]
    

    So I guess you're mutating something you shouldn't in your code?

  • Custom User Avatar

    When that happens, it's normally because your code destroys the input list inside your code. And then the expected result is calculated having an empty list as input.

  • Custom User Avatar

    The best way to get help, if it is an option for you, would be to visit the Codewars discord server, people there might be able to help. Otherwise a good idea might be to first just post an example input which your solution currently fails, as well as the expected answer, and the actual answer your solution makes.

  • Default User Avatar

    the thing is, you didn't actually post as a question, you posted as an issue, which is a different category, and because there is no issue with the kata, it was appropriately closed

    meanwhile, you were in fact given some actual help with this:

    find a way to extract an input that is making your code fail, then debug your code.

    i wish you the best of luck!

  • Custom User Avatar

    that's the definition of random. No issue here. Excpet maybe a fixed test lacking. You're the only one who can help you, here: find a way to extract an input that is making your code fail, then debug your code.