← All short lessons

Technology · Start here · Debugging

Catch a bug before the happy-path demo

Write tests that distinguish missing, invalid and valid input.

Start or resume with saved notes →
6–9 min for the lesson · application takes longer

Situation

Build it. Try it. Change one thing.What would you test when the easy example works?Illustrated learning characters · fictional scene

The Builder · fictional example

The situation

The Builder's cost calculator shows 0 when the amount field is blank. The demo worked with 20, but a user now believes an empty quote is free.

Before you continue

What would you predict? Say it aloud or write a line on paper. Then compare your reasoning with the example.

Starting knowledge: Understand inputs and outputs; coding is optional.

Need a hint or a clearer next step?

Work through Catch a bug before the happy-path demo with a focused prompt. Your notes stay private unless you choose to paste an excerpt here.

Use fictional examples. Leave out names, contact details, passwords and private records.

Get an answer here with my own OpenAI API key

Requires an active learning profile. Your provider may charge you; API billing is separate from ChatGPT. EaseBrain has no paid-key fallback.

Key clears after each attempt. EaseBrain saves only a daily request count, not your key, prompt or answer. OpenAI’s data policies apply. Up to 500 output tokens and 20 attempts a day; no automatic retries. These limits do not guarantee a spending ceiling.

Sign in · Complete my learning profile

Preview notes stay in this page only. Download before leaving.

Keep your work for later

Download a lesson backup, then open the saved workspace and restore it there. Preview work is not stored in this browser after you leave.