Create a test case for the algorithm introduced in [Listing 2](https://comp-think.github.io/book/06.pdf).