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.
This comment is hidden because it contains spoiler information about the solution
testBestMatchBigRandom
needs to have the test assertion rewritten: if test failed it returnsTest failed
without providing any feedback.are you sure you're returning an array of appropriate size? (I bet not).
not an issue: this just means your solution doesn't handle all cases.
edit: on the other hand, if you can extract the exact kind of input that makes fail your code, maybe it can be interesting to add it as fixed test.
After completing a kata and attempting to confirm the completion, I received the following error:
java.lang.AssertionError
This error occurred when I was trying to confirm the completion of the kata. It appears to be related to a test case in the "QueensAndKingsTest" class, specifically in the "testBestMatchBigRandom" method.
When I attempt to pass the full test suite I get the same error for all the test cases.
I looks like it's a bug in the test class, or some misleading info.
java.lang.ArrayIndexOutOfBoundsException: 1
at QueensAndKingsTest.isOptimalMatch(QueensAndKingsTest.java:163)
at QueensAndKingsTest.testBestMatchSingleSolution(QueensAndKingsTest.java:25)
(…)
Thanks, just fixed.
isOptimalMatch
is missing in the sample tests.This comment is hidden because it contains spoiler information about the solution