{
  "fixtureId": "fixture-quiz-badge-tiers",
  "contractName": "assignQuizBadge",
  "lessonIds": [
    "order-multi-branch-decisions"
  ],
  "invalidInputPolicy": "Throw or return INVALID_SCORE error when score is not a finite integer or lies outside the inclusive range 0..100.",
  "cases": [
    {
      "caseId": "quiz-typical-gold",
      "kind": "typical",
      "input": {
        "score": 92
      },
      "expected": "Gold",
      "reason": "High score verifying >= 90 is evaluated before >= 75 and >= 60.",
      "catchesBug": "Catches ascending threshold ordering where >= 60 shadows 92 into Bronze."
    },
    {
      "caseId": "quiz-boundary-silver",
      "kind": "boundary",
      "input": {
        "score": 75
      },
      "expected": "Silver",
      "reason": "Exact inclusive boundary for Silver tier.",
      "catchesBug": "Catches strict > 75 mistake that drops 75 into Bronze."
    },
    {
      "caseId": "quiz-boundary-bronze",
      "kind": "boundary",
      "input": {
        "score": 60
      },
      "expected": "Bronze",
      "reason": "Exact inclusive boundary for Bronze tier.",
      "catchesBug": "Catches strict > 60 mistake that sends 60 to Retake."
    },
    {
      "caseId": "quiz-typical-retake",
      "kind": "typical",
      "input": {
        "score": 45
      },
      "expected": "Retake",
      "reason": "Below minimum passing threshold falls into Retake.",
      "catchesBug": "Catches missing default else branch."
    },
    {
      "caseId": "quiz-invalid-negative",
      "kind": "invalid",
      "input": {
        "score": -5
      },
      "expectedError": "INVALID_SCORE",
      "reason": "Negative percentage violates invalidInputPolicy.",
      "catchesBug": "Catches silently returning Retake for impossible negative scores."
    }
  ]
}
