{
  "fixtureId": "fixture-booking-capacity",
  "contractName": "canBook(freeSeats)",
  "lessonIds": [
    "pair-positive-negative-examples",
    "last-available-seat",
    "first-function-python",
    "first-function-javascript",
    "first-function-go",
    "handle-missing-or-invalid-input",
    "handle-invalid-input-python",
    "handle-invalid-input-javascript",
    "handle-invalid-input-go",
    "test-invalid-negative-and-wrong-type",
    "verify-bug-fix-does-not-break-neighbors"
  ],
  "invalidInputPolicy": "freeSeats must be a non-negative integer (>= 0). Negative numbers or non-integers raise/return INVALID_FREE_SEATS.",
  "cases": [
    {
      "caseId": "bk-zero-boundary",
      "kind": "boundary",
      "input": {
        "freeSeats": 0
      },
      "expected": false,
      "reason": "Full room at exact lower boundary must decline booking.",
      "catchesBug": "Catches >= 0 off-by-one comparison bug."
    },
    {
      "caseId": "bk-one-boundary",
      "kind": "boundary",
      "input": {
        "freeSeats": 1
      },
      "expected": true,
      "reason": "Last available seat must be accepted.",
      "catchesBug": "Catches > 1 overly strict comparison bug."
    },
    {
      "caseId": "bk-typical-two",
      "kind": "typical",
      "input": {
        "freeSeats": 2
      },
      "expected": true,
      "reason": "Typical available room accepts booking and leaves one seat."
    },
    {
      "caseId": "bk-invalid-negative",
      "kind": "invalid",
      "input": {
        "freeSeats": -1
      },
      "expectedError": "INVALID_FREE_SEATS",
      "reason": "Negative seat counts violate domain constraints and return explicit error.",
      "catchesBug": "Catches implementations that silently coerce negative values to false."
    },
    {
      "caseId": "bk-invalid-text",
      "kind": "invalid",
      "input": {
        "freeSeats": "2"
      },
      "expectedError": "INVALID_FREE_SEATS",
      "reason": "Text is invalid even when it looks like an integer."
    }
  ]
}
