Workshop index · Download all examples and lessons
Author’s description: “Calculate the remaining seats before checking the request. No behaviour change intended.”
Review the snapshot in your chosen language against its baseline. The contract in fixtures/contract.md is authoritative. Do not assume the author’s intent proves the implementation preserves behaviour.
From the repository root:
git diff --no-index python/booking.py exercises/01-capacity/python/booking.py
BOOKING_VARIANT=capacity python3 -m unittest discover -s python/tests -v
# TypeScript alternative:
git diff --no-index typescript/booking.ts exercises/01-capacity/typescript/booking.ts
BOOKING_VARIANT=capacity node --test typescript/tests/booking.test.ts Write your own assessment before reading the recorded AI response in lesson 1.