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.
Still having same issue here.
Most tests work fine, except when "not" is introduced, it seems.
im facing the same problem.
Thank you for your response, I'm sorry I'm not sure what you mean by that? I'm not getting an error message, my question is about why the test question expects False when the negation of the ox statement should be true.
So far, you understood how it works. The error message is shown if the first argument of
test.expect
isn't True.No, it isn't, read how match works.
This this is telling me
str.match()
does not have alength
property, that's wrongHello! Am I being totally daft? For the 3rd example it says: 'test.expect(not xo('xxxoo'), 'False expected')
However xo returns a bool saying True for same number of x's and o's
This means that xo('xxxoo') should return False (as the numbers are not equal) meaning that not xo('xxxoo') should return True (negation).
I'm obviously missing something.
Help very much appreciated.