they probably thought it was pass by reference not by value
I made it private
The reference solution for the random tests should be private, otherwise it can be called from users' solutions (although its name has to be guessed first).
Thanks for your feedback. I will fix them.
The arguments of assertions are in the wrong order. assertSame should be used instead of assertEquals.
assertSame
assertEquals
PHP translation
This comment is hidden because it contains spoiler information about the solution
What about the sideeffects!!
Loading collection data...
they probably thought it was pass by reference not by value
I made it private
The reference solution for the random tests should be private, otherwise it can be called from users' solutions (although its name has to be guessed first).
Thanks for your feedback.
I will fix them.
The arguments of assertions are in the wrong order.
assertSame
should be used instead ofassertEquals
.PHP translation
This comment is hidden because it contains spoiler information about the solution
What about the sideeffects!!