Ad
  • Default User Avatar

    Cool, and thanks for the help with understanding the process.

  • Custom User Avatar
  • Custom User Avatar

    and remove the Rot13 entry from the list also myself?

    Already removed.

  • Default User Avatar

    Python Test rework further improved following @Chrono79 comment in translation's Discourse page:

    I have:

    • Created 3 fixed tests groups
    • Added, as suggested, fixed test group where encoding is performed twice: test that we get back original string
    • Added fixed test group for certain edge cases: empty string, lots of wraparound handling with the letter Z, string with lots of spaces, string with only "forbidden"/unused characters.
  • Default User Avatar

    @Chrono79 / @akar-0

    Here is my rework of the Python kata with the new test framework.

    PLEASE NOTE - this is my first attempt at updating/forking so please review extra carefully.

    Actions taken: forked in top right menu bar, updated sample tests and full tests inside the kumite screen editor, clicked save then publish. I kept reference solution as before, slightly modified random tests so that it tests intervals with variable lengths for the random tests.

    Link:

    23-08-2022 = Python 3.10 with new test framework

    Also, if approved, do I then go on:
    https://github.com/codewars/content-issues/wiki/List-of-Python-Kata-to-Update

    and remove the Rot13 entry from the list also myself?

    Cheers,

  • Custom User Avatar

    Try your code with this test:

    test.assert_equals(rot13(rot13("Test")),"Test")
    
  • Default User Avatar

    I copied your code and run it in Codewars - you have a small error that should be easy for you to debug, since the error messages are very clear and you should notice the pattern in "why"/"where" your code is making the mistake.

  • Custom User Avatar

    The tests are ok. Your code not working is not a kata issue. Please read this and don't raise issues so lightly in the future: https://docs.codewars.com/training/troubleshooting/

  • Default User Avatar

    Strange i wrote this challange in pycharm and everythin is working there (also the test cases are passed) but when i try to attempt ther's lot's of tests that come out as wrong (when i decode the test string and put them manualy in pycharm the result is the same as the required one)
    Could someone tell me what im doing wrong? (or are the test messed up?)

  • Custom User Avatar

    yeah, been having issues all day https://status.codewars.com/

  • Custom User Avatar

    Is down the system to run the code? I launch in a few moments and put the error in DNS.

  • Custom User Avatar

    Use this: print(f'"{n}"')

  • Custom User Avatar

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

  • Custom User Avatar

    Yes, I see de closing quote. I put the next line in test "test.assert_equals(validate_pin("1234 "),False, "Wrong output for '1234 '")" and the return is ok but i go to attemp and i received two error of similar test. I had an idea...later I'll comment if I've hit the nail on the head.
    I see that it's not a space, it's a carriage return.
    Thanks

  • Custom User Avatar

    Look where the closing quote is.

  • Loading more items...