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.
What does
// Note: Solution requires vector to be saved as an integer-array
mean? I can't see that that would be required in the solutionassertTrue()
for assertions unless the tested function returns aboolean
because it results in confusing assertion messages. UseassertEquals()
, also the variant with a delta fornorm()
.System.out
will actually not fail the test. You could useassertDoesNotThrow()
but it might not mix well with nested assertions.