Ad
  • Default User Avatar

    The tests are passing the 'base'-list as a reference to your function, which means that the 'base'-list will be modified if your function doesn't copy it before usage.

  • Custom User Avatar
  • Custom User Avatar

    Read the error message, it tells you with which input your code fails:

    Traceback (most recent call last):
      File "/workspace/default/src/codewars-test/codewars_test/test_framework.py", line 111, in wrapper
        func()
      File "tests.py", line 8, in __
        test.assert_equals(title_case(''), '')
      File "/workspace/default/solution.py", line 4, in title_case
        ...
    IndexError: list index out of range
    

    Not a kata issue.

  • Custom User Avatar

    Here's an example of a test:

    test.assert_equals(bool(search(regex, 'fjd3IR9')), True)
    

    Your code should contain only one line: assignment to regex variable.

  • Default User Avatar

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

  • Custom User Avatar

    Hi,

    Not an issue, a question. With more than 4500 completions in C#, that has to come from your code. Check that you didn't forget any import (note: I don't do C# myself, so just an idea) and check that the methods your using are compatible with the version of C# you're using on CW.

    Cheers

    PS: "issue" = problem in the kata itself / "question" = problem in your code

  • Custom User Avatar

    Yes, in your profile page.

  • Custom User Avatar

    When reporting an issue, show the exact error message, and your code using markdown formatting and mark your post as having spoiler content. Otherwise there is no way to help you.

    Python Completions 1660

    Probably the problem is in your code, not in the kata.