Software Testing / Learning brief

Tom lets a hundred lists loose

What this means in plain language

Tom's three chosen lists all pass, but his sort has a bug. A story about a rule and a hundred random lists shows how a tool found a list with a repeated day, then shrank it to just two tasks.

Understand the full idea, step by step

If you pick three lists by hand, you pick the ones you thought of. A thousand random lists include ones you never would.

Tom has a sort that puts tasks in order of due day. His three lists all pass. He is not sure that three lists are enough, so he writes a rule and lets a tool hunt for a case that breaks it.

Evidence & review

REVIEWED 2026-10-21

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Property-based testing as taught in this academy, with an invented app. The run used the Hypothesis tool, version 6.170.1, for this lesson.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The sorting picture is a teaching aid, and the function is a small example.

Sources for this brief — 7 sources
  1. Market practice

    QuickCheck: A lightweight tool for random testing of Haskell programs (Claessen and Hughes, 2000 conference paper) ↗ — ACM · Properties are written as functions and tested on random inputs; users can write their own generators (search excerpt, page not opened)

    States properties as functions and tests them on random inputs; users can write their own generators. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: International Conference on Functional Programming 2000, pages 268 to 279. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    How Hypothesis Works (Hypothesis project) ↗ — Hypothesis project · The tool generates inputs and shrinks a failing input to a simpler one (search excerpt, page not opened)

    Explains that Hypothesis generates inputs and shrinks a failing input to a simpler one. Vendor documentation for one tool. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Quickstart (Hypothesis documentation) ↗ — Hypothesis project · The given decorator with strategies such as integers and lists; by default 100 inputs are tried (search excerpt, page not opened)

    Shows the given decorator with strategies such as integers and lists, and that by default Hypothesis tries 100 inputs. Vendor documentation for one tool. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

  5. Market practice

    Strategies Reference ↗ — Hypothesis project · Strategies define input domains and shrink behaviour; lists can specify an element strategy and size bounds, and integers can specify minimum and maximum values. (primary page opened and read, 2026-10-21)

    Strategies define input domains and shrink behaviour; lists can specify an element strategy and size bounds, and integers can specify minimum and maximum values. · Checked 2026-10-21

    Primary page opened and read on 2026-10-21. Scope is the claim described here; this does not upgrade earlier citations to other pages. Examples in Daily List are synthetic teaching examples.

  6. Implementation-specific

    User Guide 1.10.2: assumptions and shrinking ↗ — Jqwik project · jqwik User Guide 1.10.2: Assumptions, Filtering and Result Shrinking. Primary sections opened 22 October 2026. The proposed-input counts below are invented, not a jqwik run.

    Explains rejected generated inputs, discard limits and simpler failing examples. · Checked 2026-10-22

    The named primary sections were opened on the access date. The lesson does not generalise default counts or limits to other tools.

  7. Implementation-specific

    FsCheck Quick Start: checking the property itself ↗ — FsCheck project · FsCheck Quick Start: FsCheck teaches us a lesson; F# float/NaN example and C# equality-comparer explanation. Primary body opened 22 October 2026.

    Shows how data type and the chosen comparison can change whether a property holds. · Checked 2026-10-22

    Primary quick-start body opened and read on the access date. F# and C# examples differ in their handling of a special numeric value. Search behaviour in Daily List is an original teaching example.

Learn this properly

START HEREProperty-based testingState a rule that should always hold, let a tool try hundreds of inputs, and read the smallest failing one it finds.Opens at L0 Explain simply · about 18 min

Related briefs