Core: learn it Step 11 of 16 on the Python Developer roadmap

What to test

Test the normal case, the edge cases (an empty list, zero, a huge number) and the error cases. One clear check per test makes failures easy to understand.

More in Testing your code

See it on the Python Developer roadmap