Workshop index · Download all examples and lessons
Author’s description: “Introduce a named boolean for the positive-quantity check. No behaviour change intended.”
Compare this snapshot against the original baseline, independently of Review A.
git diff --no-index python/booking.py exercises/02-validation/python/booking.py
BOOKING_VARIANT=validation python3 -m unittest discover -s python/tests -v
# TypeScript alternative:
git diff --no-index typescript/booking.ts exercises/02-validation/typescript/booking.ts
BOOKING_VARIANT=validation node --test typescript/tests/booking.test.ts Recorded AI claim: “Blocking: changing < 1 to > 0 admits quantities between zero and one. This allows fractional seats.”
Decide whether this claim applies to the specified service contract. Explain your decision; do not merely report that tests pass.