{
  "fixtureId": "fixture-map-lookup-default",
  "contractName": "lookupRoomSeats(roomMap, roomId)",
  "lessonIds": [
    "handle-missing-key-with-default",
    "map-lookup-across-languages"
  ],
  "invalidInputPolicy": "roomId must be a non-empty string; missing key returns \"UNKNOWN_ROOM\" (distinct from valid 0 seats).",
  "cases": [
    {
      "caseId": "mld-open",
      "kind": "typical",
      "input": {
        "roomMap": {
          "Room-A": 2,
          "Room-B": 0
        },
        "roomId": "Room-A"
      },
      "expected": 2,
      "reason": "Known open room returns its integer seat count."
    },
    {
      "caseId": "mld-zero",
      "kind": "boundary",
      "input": {
        "roomMap": {
          "Room-A": 2,
          "Room-B": 0
        },
        "roomId": "Room-B"
      },
      "expected": 0,
      "reason": "Known full room returns 0, NOT UNKNOWN_ROOM.",
      "catchesBug": "Catches falsy fallback (roomMap[roomId] || \"UNKNOWN_ROOM\") which misclassifies 0."
    },
    {
      "caseId": "mld-missing",
      "kind": "boundary",
      "input": {
        "roomMap": {
          "Room-A": 2,
          "Room-B": 0
        },
        "roomId": "Room-Z"
      },
      "expected": "UNKNOWN_ROOM",
      "reason": "Absent key returns explicit UNKNOWN_ROOM status."
    },
    {
      "caseId": "mld-invalid-id",
      "kind": "invalid",
      "input": {
        "roomMap": {
          "Room-A": 2
        },
        "roomId": ""
      },
      "expectedError": "INVALID_ROOM_ID",
      "reason": "Blank room ID is rejected explicitly."
    }
  ]
}
