From 4a9fd9016ef2fbc4f281578d51b03574da249bd7 Mon Sep 17 00:00:00 2001 From: GCHQDeveloper581 <63102987+GCHQDeveloper581@users.noreply.github.com> Date: Sun, 7 Jun 2026 15:48:29 +0000 Subject: [PATCH] Add failing test for LIST round-trip --- tests/operations/tests/Thrift.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/operations/tests/Thrift.mjs b/tests/operations/tests/Thrift.mjs index 1d0785f6..fd1b29e8 100644 --- a/tests/operations/tests/Thrift.mjs +++ b/tests/operations/tests/Thrift.mjs @@ -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] } + ] } ]);