Ad
  • Default User Avatar

    I'm getting some errors in the test code:

    Traceback (most recent call last):
    File "/runner/frameworks/python/cw-2.py", line 111, in wrapper
    func()
    File "main.py", line 10, in it_1
    Test.assert_equals(encode("")[0], "")
    IndexError: string index out of range

    That index in the test assertion is causing issue. I run the test without it, seems to do just fine:

    Test.assert_equals(encode(""), "")
    

    I'm not sure if this is a bug or I need to approach this another way to remove the error and pass the assert?