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.
duplicate!
Please, don't ever use
Test.expect()
without a customized error message upon failure. The default error message shown to the user whenTest.expect()
fails is"Value is not what was expected"
which provides no useful feedback whatsoever for debugging. Even adding a simple message as"The 3 by 3 matrix [[1,1,1], [1,1,1], [1,1,1]] is not a magic square!"
(upon failure) would be helpful.Your Kata needs more extensive test coverage to prevent easy cheap-cheat solutions and/or logically flawed solutions. The most common way to increase test coverage is through the inclusion of randomly generated test cases at runtime so please add these. The lack of test coverage in a Kata as an Issue is recognised as an official CW stance.