{
  "cases": [
    {
      "id": "V01",
      "input": {
        "stage": "open",
        "contract": null,
        "discount": null
      },
      "expected_errors": [],
      "candidate_errors": [],
      "expected_accept": true,
      "candidate_accept": true,
      "match": true
    },
    {
      "id": "V02",
      "input": {
        "stage": "won",
        "contract": "C-2",
        "discount": 10
      },
      "expected_errors": [],
      "candidate_errors": [],
      "expected_accept": true,
      "candidate_accept": true,
      "match": true
    },
    {
      "id": "V03",
      "input": {
        "stage": "won",
        "contract": null,
        "discount": 10
      },
      "expected_errors": [
        "CONTRACT_REQUIRED"
      ],
      "candidate_errors": [
        "CONTRACT_REQUIRED"
      ],
      "expected_accept": false,
      "candidate_accept": false,
      "match": true
    },
    {
      "id": "V04",
      "input": {
        "stage": "won",
        "contract": "   ",
        "discount": 10
      },
      "expected_errors": [
        "CONTRACT_REQUIRED"
      ],
      "candidate_errors": [],
      "expected_accept": false,
      "candidate_accept": true,
      "match": false
    },
    {
      "id": "V05",
      "input": {
        "stage": "open",
        "contract": null,
        "discount": 0
      },
      "expected_errors": [],
      "candidate_errors": [
        "DISCOUNT_RANGE"
      ],
      "expected_accept": true,
      "candidate_accept": false,
      "match": false
    },
    {
      "id": "V06",
      "input": {
        "stage": "open",
        "contract": null,
        "discount": 20
      },
      "expected_errors": [],
      "candidate_errors": [],
      "expected_accept": true,
      "candidate_accept": true,
      "match": true
    },
    {
      "id": "V07",
      "input": {
        "stage": "open",
        "contract": null,
        "discount": 21
      },
      "expected_errors": [
        "DISCOUNT_RANGE"
      ],
      "candidate_errors": [
        "DISCOUNT_RANGE"
      ],
      "expected_accept": false,
      "candidate_accept": false,
      "match": true
    },
    {
      "id": "V08",
      "input": {
        "stage": "won",
        "contract": null,
        "discount": -1
      },
      "expected_errors": [
        "CONTRACT_REQUIRED",
        "DISCOUNT_RANGE"
      ],
      "candidate_errors": [
        "CONTRACT_REQUIRED",
        "DISCOUNT_RANGE"
      ],
      "expected_accept": false,
      "candidate_accept": false,
      "match": true
    }
  ],
  "expected_accepted": 4,
  "candidate_accepted": 4,
  "mismatches": [
    "V04",
    "V05"
  ]
}
