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.
The same test exists in at least javascript.
Sorry I didn't specify, yes in Python. Also, what trashy_incel said.
there is this annoying fixed test in Python:
In Python,
False == 0
andTrue == 1
(becausebool
inherits fromint
), so checking if the codes are equal with==
fails this test. It's technically a user error, since you have to know how booleans work in Python, however it could be argued this test is just an annoyance that adds nothing to the core task, which is to compare dates. and you only find out about it when submitting, it's no mentionned in the description or sample testsWhich language are you refering to?
To fix this from the testing side, whoever set up the tests should be using == (value comparison) instead of is (reference comparison) to compare strings. If this is not a deliberate decision on their part, it's a mistake in the test setup.