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.
Inside "Sample Test" block after declaration of
create_chain_for_test
method add these two lines:That is enough to make test run.
You get that error because you can't run tests. The author has configured the tests to show you how the tail and loop are created.
That said i'm confused as heck about what the Node even has. It doesn't seem to have a value available with
.value
so how we determine loop from tail I have no ideaUsing Ruby.
The the
Node
class is not in the description.When running "Test", I get an unexpected error:
Even when I tried with a very simple solution that's wrong but should not "break":