{
  "topic": "BACnet Boolean 编码",
  "origin": "本文原创合成数据，未采集真实设备",
  "cases": [
    {
      "case_id": "真后跟42",
      "kind": "正例",
      "input": {
        "hex": "11 21 2A"
      },
      "expected": {
        "boolean": true,
        "next_unsigned": 42,
        "consumed": 3
      }
    },
    {
      "case_id": "假后跟7",
      "kind": "正例",
      "input": {
        "hex": "10 21 07"
      },
      "expected": {
        "boolean": false,
        "next_unsigned": 7,
        "consumed": 3
      }
    },
    {
      "case_id": "把真值当负载",
      "kind": "显式负例",
      "input": {
        "hex": "11 01 21 2A"
      },
      "expected_error": "后续Unsigned错位"
    },
    {
      "case_id": "不合法Boolean LVT",
      "kind": "显式负例",
      "input": {
        "hex": "12 21 2A"
      },
      "expected_error": "Boolean LVT不是0或1"
    }
  ]
}
