Ad
  • Default User Avatar

    It is indeed an issue. It should be fixed.
    The error comes from the test, not your code.
    You can modify your code to accomodate, but it really should be fixed in the kata's tests.

    If in the function definition you write
    "def arr(n=0):"
    instead of
    "def arr(n):"
    then it will run just fine.

    But this is clearly out of the scope of the exercise, as one should not have to modify the function that's given to one in such exercises...

  • Custom User Avatar

    Your code should handle that test too, it's not a problem with the test.

  • Custom User Avatar

    In python doesn't work fine...

    Test Results:
    Example Tests
    Test Passed
    Test Passed
    Test Passed
    STDERR
    Traceback (most recent call last):
    File "main.py", line 14, in
    test.assert_equals(hello(), "Hello, World!")
    TypeError: hello() missing 1 required positional argument: 'name'

  • Custom User Avatar

    Duplicate issue, see jonesmat's post below. And you can still solve the problem (if your code handle that case):

    PHP Completions 95

  • Custom User Avatar

    "Too few arguments to function arr(), 0 passed in /workspace/default/tests/ExampleTest.php on line 10 and exactly 1 expected"

    Error in tests, cant complete it;

  • Default User Avatar

    If you are not sure, you should not raise an issue. The kata runs fine in your language (python), and please note it has over 2K solutions. If you can prove it has an issue, provide the test case, expected output, your output, and why the problem arises.

  • Custom User Avatar

    Unexpected exception raised
    I think this is an error in the excercise