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.
There's also no reason to print on each test iteration. Feedback is really only necessary when a test fails.
Please also expand the assertion messages for the
sample_tests
, remove the print line and add the input to the assertion message.Looks good, except for this line
It seems overkill, and is way outside the intention of the Kata. e.g. No pet, (and no pet owner) is going to live for 20000 human yrs. Make that a much smaller realistic number number and then I will approve it.
My apologies. I totally forgot I attempted to do this two years ago. I hope the revision meets the expectations.
u32
, since we explicitly state that there are no negative values.Vec
, since there are always 3 values. Either[u32;3]
or(u32,u32,u32)
.left
andright
mean.use
the user function in the test module, don't import everything (*
). We don't know what other items the user is going to define, and we don't want them polluting our namespace.I will reject this, feel free to fork it and update with fixes.