Software Testing / Learning brief

Tom checks the library desk

What this means in plain language

Three small rules, true before, after and always, tell a tester when a move went wrong. Tom checks a library desk and a Daily List move, and finds a task lost when the target list is missing.

Understand the full idea, step by step

At a library desk, the book must be on the shelf before a loan. After the loan, the shelf has one book fewer and the borrower has one more. All the time, the total number of books stays the same.

Tom borrows the idea for Daily List. A person moves a task from one list to another, and Tom writes the three rules for that move.

Evidence & review

REVIEWED 2026-10-18

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.

Precondition, postcondition, invariant and before-and-after check as taught in this academy. The people and the Daily List app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The code and the counts were run to check each answer. The testing glossary definition of precondition and postcondition was not found. Review 7 November 2026: the prior access notes remain historical; current corrections use only the precise primary sections cited beside the changed explanations. Synthetic examples are not scheme, tool or legal certification.

Sources for this brief — 5 sources
  1. Market practice

    Design by Contract (Eiffel course notes, Trinity College Dublin) ↗ — Trinity College Dublin (mathematics course notes) · A precondition is the caller's obligation, a postcondition is the supplier's obligation, and a class invariant is a property that must hold after creation and be kept by every routine (search excerpt, page not opened)

    Per the search excerpt, Bertrand Meyer's design by contract: a precondition is the caller's obligation, a postcondition the supplier's obligation, and a class invariant is a property that must hold after creation and be kept by every routine. 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.

  2. Market practice

    Design by Contract (lecture slides, University of Bern) ↗ — University of Bern (Software Composition Group) · Lecture slides on preconditions, postconditions and invariants in design by contract (search excerpt, page not opened)

    Per the search excerpt, lecture slides on preconditions, postconditions and invariants. 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

    Using Heuristic Test Oracles (Michael Kelly) ↗ — InformIT · A heuristic oracle is a way to judge a result that can be fallible, which is how a rule of what must be true is used in practice (search excerpt, page not opened)

    Practitioner article; cite for the idea that oracles are able to be wrong heuristics that suggest a problem rather than prove one. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: article as listed on the publisher's site. 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. Author attribution corrected from the author’s own bibliography https://www.michaeldkelly.com/articles, opened6 November2026. The InformIT article now redirects to its generic article index; article contents remain excerpt-only.

  4. Market practice

    The Oracle Problem in Software Testing: A Survey (Barr, Harman, McMinn, Shahbaz, Yoo) ↗ — IEEE Transactions on Software Engineering, vol. 41, no. 5, 2015, pp. 507-525 · The oracle problem is the difficulty of deciding whether a result is correct (search excerpt, page not opened)

    Open-access copy on UCL Discovery. Peer-reviewed survey; cite for the definition of the oracle problem and for the human as the last source of an oracle. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2015, DOI 10.1109/TSE.2014.2372785. 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.

  5. 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.

Learn this properly

START HEREPre-conditions, post-conditions and invariantsThree small rules give a tester oracles for free: what must be true before an action, what must be true after it, and what must always be true.Opens at L0 Explain simply · about 14 min

Related briefs

Tom and the library desk

Tom sees a 404, a 403 and a 401 in one afternoon. A library desk shows how he reads the action and the number in each request, and how he finds a double click that adds a task twice by mistake.

READ BRIEF

Tom checks which security rules apply

Tom separates regulatory and contractual obligations, reads requirement conventions and checks new security notices against actual assets. The hall and contract are invented; the source distinctions come from the named syllabus and RFCs.

READ BRIEF