Add failing test for LIST round-trip

This commit is contained in:
GCHQDeveloper581 2026-06-07 15:48:29 +00:00
parent 7fd31b9bab
commit 4a9fd9016e
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -119,5 +119,18 @@ TestRegister.addTests([
{ op: "From Hex", args: ["Auto"] },
{ op: "Thrift Deserialize", args: ["TCompactProtocol"] }
]
},
{
name: "Thrift Deserialize/Serialize: TBinaryProtocol List round-trip",
// Validates that a TBinaryProtocal LIST is successfully deserialised
// and that the result can be Serialized back into the original binary data
input: "0f 00 0b 08 00 00 00 03 00 00 00 01 00 00 00 02 00 00 00 03 00",
expectedOutput: "0f 00 0b 08 00 00 00 03 00 00 00 01 00 00 00 02 00 00 00 03 00",
recipeConfig: [
{ "op": "From Hex", "args": ["Auto"] },
{ "op": "Thrift Deserialize", "args": ["TBinaryProtocol"] },
{ "op": "Thrift Serialize", "args": [] },
{ "op": "To Hex", "args": ["Space", 0] }
]
}
]);