Challenge: Make the Unit Test Pass

Here is a coding challenge to write a unit test.

We'll cover the following

Problem statement #

Implement toFront() according to TDD. Start with the intentionally incomplete implementation below. Observe that the unit tests fail. Your task is to provide an implementation that passes the tests.

Challenge #

This problem is designed for you to practice, so try to solve it on your own first. If you get stuck, you can always refer to the explanation and solution provided in the next lesson. Good luck!

Get hands-on with 1200+ tech skills courses.