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.
Wow thank you, I didn't notice the not operator in the tests :)
That is a valid walk and your test (the one you've written in the sample tests) is testing for an invalid walk, see how are the sample tests:
Hi!
when I try my code (attempt button), some cases fail like this (output):
It should work also for a ['e', 'w', 'e', 'w', 'n', 's', 'n', 's', 'e', 'w'] walk: False should equal True
However, when I test my code (test button) with the failed ones, it passes. For example this works:
test.expect(not is_valid_walk( ['e', 'w', 'e', 'w', 'n', 's', 'n', 's', 'e', 'w'] ), 'should return True');
Is this a weird issue with my code or with the testing? Thanks!