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.
Changed all cases of
test.assert_equals
totest.expect
, because i genuinely didnt know how to get rid of thatfalse should equal true
at the endWhen tests fail, assertion message could be slightly improved. The part "Expected True but got False" is superfluous and potentially confusing, and information about tolerance is missing. MAybe you could check if using
test.expect
with a fully customised assertion message, including input values, expected values, actual values, and tolerance, would give a cleaner feedback on failure?forgot to tick the resolve issue box whoops
so use normal brackets instead of square ones right? understood
issue resolved
A known number of values with entirely different meanings should be represented as a tuple, not an array or a list. Use appropriate datatypes!
Do not ask for rounded results. This is documented.