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 idea
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":