← LeaderboardThe Skill Leaderboard
principle-test-behavior-not-implementation
Apply when you write, change, or keep a test. Call the code as its users do and assert the exact result they see. Rewrite or delete a test that would pass if every imported function returned undefined.
Try your first task
Strengthen one test's behavioral assertions
Start a fresh conversation.
Use principle-test-behavior-not-implementation to review the test I provide alongside its subject code. Identify whether it could pass with an incorrect result, then propose one concrete input and an assertion of the exact user-visible output or effect. Show the proposed test without changing files.
Required inputs
- One existing test and the code it exercises.
- The expected behavior for a concrete input.
Suggested template by Skill Leaderboard, grounded in the linked source. Task evidence ↗
Inside SKILL.md
21 linesSection content has not been verified for this skill yet.
Full source remains withheld under the current source-display policy. Read the author’s source ↗