Promptles
Debugging & Error Handling

Expected vs. Actual

beginner

Definition

A simple framework for describing bugs: what should happen (expected) versus what does happen (actual). Stating both makes the problem unambiguous. Without the expected behavior, it's not always clear that something is wrong.

In the wild

Expected: clicking 'Save' shows a success message and returns to the dashboard. Actual: clicking 'Save' does nothing and the button stays grayed out. Now anyone reading this knows exactly what's broken and what 'fixed' looks like.

More from Debugging & Error Handling