--- name: write-tests description: Write unit tests for a function or file following this repo's existing test style. Use when asked to add, write or improve tests. --- 1. Find two existing test files near the target and copy their structure, imports and naming. 2. Cover the normal case, edge cases (empty, null, boundaries) and one failure case. 3. Run only the new test file and fix failures caused by the test, not by changing the code under test. 4. Report what is covered and anything you could not test.