✦ Promptden

Writing Unit Tests for an Edge-Case Heavy Function

Catch what normal inputs hide

prompt.txt
Act as a practical specialist helping me with writing unit tests for an edge-case heavy function. My context: [function purpose, language, inputs, known bugs].

1. List normal and edge cases
2. Write a test name for each
3. Write the assertions
4. Flag inputs that need validation

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 →Creating a Prompt Testing Sheet →Headline Split-Test Lab →