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.
Rust translation
Those are directions, not points.
according to the given test example it should be the opposite
Test.expect(isValidWalk(['n','s','n','s','n','s','n','s','n','s']), 'should return true');
so if 's' is the starting point the end should be 'n'
And isn't that what you should do to solve the kata? It seems you're misunderstanding something.
This comment is hidden because it contains spoiler information about the solution
Not all possible combinations can be checked, have you a solution that fails only that test and passes the current ones?
There is a case that is not being checked in the tests, for example: ['n', 'e', 's', 'w', 'e', 'w', 'e', 'w', 'e', 'w']. So this causes the problem to be solved incorrectly, because you skip this correct case.