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.
you are trying to print array like this System.out.println(array). use for loop
Its not a hascode but an adress of Array in Heap where link is point and array is allocated
It is not a double array. It is
array[key]
construct, where the array content is'silver' => 10, 'gold' => 5, null => 20
and the key that is accessed is the result of@$bands[3]
.Basic tests are supposed to be in test cases too. Also, they go in one group instead of two.
Done, all that's left in test cases is random tests.
Almost good, except you could put all the basic tests in the sample test cases.
Thanks for the tips, let me know if there's anything more to fix,
Damian.
Of course I did! Thank you for the quick response and have a nice day :)
@damiansakwinski
There is only one random test, there should be a loop with 100 tests.
That regenerates the value on every iteration. Please put the random number in a seperate variable.
Expected and actual values are flipped. Correct order is
$this->assertEquals($expected, $actual);
Random tests go in the test cases, not the sample tests.
Random test added.
It is stated in the notes that the array is always even. Then why the last test case in the PHP translation is 5 elements long?
Loading more items...