✦ Promptden

Writing Unit Tests for Edge Cases

Catch the bugs users find first

prompt.txt
Act as a practical specialist helping me with writing unit tests for edge cases. My context: [function; inputs; edge cases; language; framework].

1. List unusual inputs.
2. Write failing tests.
3. Fix the code.
4. Run all tests.
5. Keep tests small.

Use my details, not a generic example. If a fact needed for the plan is missing, ask for it or mark the assumption. Keep the result ready to use.
#coding#testing
💡 Replace the [brackets] with your details — the more specific, the sharper the answer.

More coding heat

💻 Coding

Rubber Duck Debugger Pro

A systematic bug hunt instead of staring at the screen for hours.

#debugging#workflow
💻 Coding

Code Reviewer With Taste

A senior-level review: correctness, style, and the stuff linters miss.

#review#quality
💻 Coding

Explain This Codebase

Paste unfamiliar code, get a map of what it actually does.

#learning#onboarding

Prompts for the next step

Explore related prompts across other categories.

A/B Test That Tells Truth →Headline Split-Test Lab →Landing Page Headline Testing →