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.
The tests are correct.
Note the last few bullet points on the instructions:
In the test case generation 1 has already been populated. Notice that the state of the board just before
populate(generation2)
gets called.In sample tests generation2 has 8 elements.
populate() method gets called and right after that test checks print_state() and expects 12 elements instead of 8. How count of elements may change without calling the move(), or how it can increase even with move()? It seems like mistake in generation2 data. When I replaced generation2 input, all sample tests get passed.
Given:
Corrected:
Can you check if mistake present in tests?
Also I can't correct full (remote) tests, so I can't pass them.