All problems

A Community Shelf Marks an Incomplete Book Bundle Ready

Level 2 · node · Reliability · Quantity checks for book bundle readiness

Scenario

A fictional community bookshelf hands over reserved books as a bundle. Some reservations require two copies of the same title. The screen sometimes shows ready too early, leaving the patron without a complete bundle.

Requirements

Check that each requested title has sufficient copies. Ignore unrelated books and consider an empty request ready.

Acceptance criteria

  • A bundle with all titles and copies is ready.
  • A bundle missing a title is not ready.
  • Two requests for the same title require two copies.
  • An empty request is ready.