OhMyBug

tests/ci

Test Data Too Small To Tell

#34uncommon65 sightingsfirst seen September 2026

What goes wrong

All the test data is degenerate for the property under test — one element, a term that equals zero, an empty derived list — so a broken implementation gives the same answer as a correct one. Replace the sum with 'take the first element' or drop the sort and every test still passes.

Example

A sort test uses a one-element list; remove the sort and the test is still green.

Not to be confused with

The code runs and the branch is reached, unlike Unreached Branch Test; the data is too small, rather than matching by coincidence (Coincident Alternative Oracle).

Discovered by

Field notes · 27