Vibeleaderboard
← Glossary
Glossary · AI and agent workflows

Behavior example

A concrete input paired with the output a program should produce for it.

A behavior example states what a program should do for one specific input by showing the expected output. It is checkable: a reader can run the program on the input and compare. Precise intent can be checkable too; vague intent such as "compare fairly" is not, because different readers expect different results from it. The garden comparison uses a three-row quotes table with its expected output as its main example; the CS50 lowercase problem uses a few input and output pairs.

See how the idea fits

Say what the program should do before anyone writes it →
Definition sources