DeepLearn Tools
Menu
Claude prompt

Write unit tests for a function

Write unit tests for the function below, using [TEST_FRAMEWORK]. <code> [CODE] </code> Cover the normal case, the edge cases (empty input, zero, very large values, invalid types) and every error the function can raise. Name each test after the behaviour it checks. Before the code, list the cases you are testing in one line each, so I can spot a missing one.
Open in ▾
XLinkedIn