{
  "topic": "OPC UA Numeric NodeId 二进制",
  "origin": "本文原创合成数据，未采集真实设备",
  "cases": [
    {
      "case_id": "TwoByte42",
      "kind": "正例",
      "input": {
        "hex": "00 2A"
      },
      "expected": {
        "encoding": "TwoByte",
        "namespace": 0,
        "identifier": 42
      }
    },
    {
      "case_id": "FourByte42",
      "kind": "正例",
      "input": {
        "hex": "01 00 2A 00"
      },
      "expected": {
        "encoding": "FourByte",
        "namespace": 0,
        "identifier": 42
      }
    },
    {
      "case_id": "Numeric42",
      "kind": "正例",
      "input": {
        "hex": "02 00 00 2A 00 00 00"
      },
      "expected": {
        "encoding": "Numeric",
        "namespace": 0,
        "identifier": 42
      }
    },
    {
      "case_id": "命名空间300",
      "kind": "正例",
      "input": {
        "hex": "02 2C 01 70 11 01 00"
      },
      "expected": {
        "encoding": "Numeric",
        "namespace": 300,
        "identifier": 70000
      }
    },
    {
      "case_id": "截短FourByte",
      "kind": "显式负例",
      "input": {
        "hex": "01 02 2A"
      },
      "expected_error": "NodeId编码长度错误"
    }
  ]
}
