Ad
  • Default User Avatar

    Thanks, ill look into it. And thanks for the heads up of the spoiler tag.

  • Default User Avatar
    • Click the spoiler tag when posting code. (I have added the tag).
    • Use proper markdown when posting code. I was able to know your Python indentation here only because the code is simple. Otherwise I would not want to guess at it.
    • placing get_middle("cJq") with your code runs the code, but doesn't test it. You can create sample tests by using expected results from random tests: Test.assert_equals(get_middle("cJq"), "J")
    • you need to look at the error messages:
    Testing for jelqimTJlNhTk
    It should work for random inputs too: 'mTJ' should equal 'T'
    

    This shows that you are returning three characters instead of one. So you have that to fix in your code now.

  • Default User Avatar

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

  • Default User Avatar

    What do you mean by

    testing those tests

  • Default User Avatar

    Bluntly, your end is not correctly validating your code. You have to go with the Codewars results.

    I was able to pass the test

    Sounds like you only passed the sample tests part. When you press SUBMIT, there are fixed and random tests you have to pass.

  • Default User Avatar

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