Solution: Make the Unit Test Pass

This lesson provides a solution to the challenge given in the previous lesson.

We'll cover the following

Solution #

For demonstration purposes, let’s write an obviously incorrect implementation that passes the first test by accident. The following function simply returns a copy of the input:

Get hands-on with 1200+ tech skills courses.