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.
I see thank you very much.
You have some extra quotes and your function doesn't return the result, please read the docs: https://docs.codewars.com/training/training-example
This is a great kata, I just think that the description is slightly misleading as it should mention that the test cases will include not just spaces, but other special characters too.
Also, the sample test cases don't include any examples with other special characters, so I didn't realise that I needed to adapt my code for special characters until I attempted the challenge & saw the random test cases.
on mandor sestt
No random tests
describe
/it
decoratorsassert_equals
https://docs.codewars.com/languages/python/codewars-test
Hi,
The tests do not even run (wrong use of
test.assert_equals
).Also, the test framework isn't used properly (refer to the CW's python documentation)
Aslo, this is too much basic for a kata (we already have loads of such a kind of task, so I suggest yuou keep it as draft (otherwise you most likely just will loose honnor until it gets retired minutes/hours later.
Cheers
Just noticed a small typo that should be corrected, "exemple" should be example
50 = 1. 5 is the value at index 0. The test is fine, not a kata issue.
One of the sample tests are written incorrectly:
test.assert_equals(index([5, 6], 0), 1)
. In the description, it says the output should be -1 if index N is not in the array, but the sample test expects an output of 1.Added 2 more, click Reset to see them.
There is only one sample test in Python. I believe a few more tests should be added.
This is a really fun kata! I just think that the instructions could be a bit more clearer. Maybe include one or two examples in the Description?