{
  "topic": "BACnet Priority Array NULL",
  "origin": "本文原创合成数据，未采集真实设备",
  "cases": [
    {
      "case_id": "占用释放回退",
      "kind": "正例",
      "input": {
        "default": 25,
        "events": [
          {
            "priority": 8,
            "value": 22
          },
          {
            "priority": 4,
            "value": 18
          },
          {
            "priority": 4,
            "value": null
          },
          {
            "priority": 8,
            "value": null
          }
        ]
      },
      "expected": {
        "timeline": [
          {
            "effective": 22,
            "source": 8
          },
          {
            "effective": 18,
            "source": 4
          },
          {
            "effective": 22,
            "source": 8
          },
          {
            "effective": 25,
            "source": "RelinquishDefault"
          }
        ]
      }
    },
    {
      "case_id": "零值有效",
      "kind": "正例",
      "input": {
        "default": 25,
        "events": [
          {
            "priority": 1,
            "value": 0
          }
        ]
      },
      "expected": {
        "timeline": [
          {
            "effective": 0,
            "source": 1
          }
        ]
      }
    },
    {
      "case_id": "优先级0",
      "kind": "显式负例",
      "input": {
        "default": 25,
        "events": [
          {
            "priority": 0,
            "value": 20
          }
        ]
      },
      "expected_error": "优先级应为1到16"
    }
  ]
}
