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
Added a description
Unfortunately, I don't understand what you mean.
I set conditions on this kata that are described.
According to these conditions need to provide a working code.
All these conditions are verified by tests
Could you more details to explain what you mean, please?
The function doesn't return
1
and he expected result is not2
.1 should equal 2
doesn't make sense.I replaced the 'assert_true' with 'assert_equals'.
Also, I do not understand what you mean about
"Python: useless error messages:"
Python: useless error messages:
Made more numbers of tests
1 test is not adequate. Typically there should be around 100 tests.
Added description
Added test which has an array of various lengths with random values at the input
This code should be working with commands IDs
Which IDs were input in the variable $uids they should be returned as an array certain configuration, this is one of the rules.
You showed me an array in which there are values that should not be there
The new test case return very cryptic expected/actual results because it is performing a complicated check, such as
Similarly,
$this->assertTrue($unique);
is not acceptable: if a test case fails there are no indication why it failed, which provides no useful (to downright misleading) feedback.There are still no random tests. There was only a fixed test added.
The required input validation and what should be done about them (including throwing an exception with a specific message) should be all in the description. It is a key part of the spec.
After resolving the issues you need to republish the kata as well. It's currently in draft.
Loading more items...