Unit Test Walkthrough
Walk through creating a unit test for a function, what cases to cover, and why each matters.
Prompt
I want to write a unit test for this function: [paste code]. Walk me through creating the test, what cases to cover, and why each one matters.