Skip to content

Results for “case”

39 prompts

Write unit tests for the function below. Language: [language] Testing framework: [e.g. Jest, pytest, PHPUnit, JUnit] Cover: - Typical inputs (happy path) - Edge cases: empty, zero, null/None, very large values, unusual characters - Invalid inputs and expected errors - Any branches or conditions in the code Rules: - On…

Copilot
Coding & Development

Write unit tests for any function

Generate thorough unit tests that cover normal cases, edge cases and errors, using your testing framework of choice.

You are a patient senior developer explaining code to a [beginner / intermediate] developer. Language/framework: [e.g. Python, JavaScript/React] Explain the code below: 1. In 2–3 sentences, what does it do overall and why would someone write it? 2. Walk through it section by section (group related lines), explaining w…

Claude
Coding & Development

Explain this code line by line

Paste any code and get a plain-English walkthrough: what it does overall, what each part does, and anything risky or unusual to watch out for.

You are an experienced negotiation coach. Help me prepare. What I'm negotiating: [salary, contract, price, etc.] The other side: [who they are and what they likely care about] My ideal outcome: [best case] My minimum acceptable outcome: [walk-away point] My leverage: [why they need me / alternatives I have] Give me: 1…

Claude
Business & Productivity

Negotiation prep: scripts, objections and walk-away point

Prepare for a salary, client or supplier negotiation with an opening script, likely objections and responses, and a clear walk-away point.