Debug a failing test
Walk through why a test is failing and whether the bug is in the test or the implementation. Delivers a corrected version of whichever side is wrong.
Preview
Copy prompt
This test is failing with the following output: [Paste test code and failure output]. The function under test is: [Paste implementation]. Walk me through diagnosing why the test fails — determine whether the bug is in the test assertion or the implementation logic — then show the corrected version of whichever side is wrong, with a brief explanation of what needed to change and why.
More
Debugging
Prompts
