Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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...
Your code should handle that test too, it's not a problem with the test.
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'
Duplicate issue, see jonesmat's post below. And you can still solve the problem (if your code handle that case):
"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;
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 anissue
, provide the test case, expected output, your output, and why the problem arises.Unexpected exception raised
I think this is an error in the excercise