From 3b581888a93e18b1938a4e17546575e38f9de050 Mon Sep 17 00:00:00 2001 From: GCHQDeveloper581 <63102987+GCHQDeveloper581@users.noreply.github.com> Date: Sun, 8 Mar 2026 13:28:37 +0000 Subject: [PATCH] Add test for non-Latin1 character code --- tests/operations/tests/TextIntegerConverter.mjs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/operations/tests/TextIntegerConverter.mjs b/tests/operations/tests/TextIntegerConverter.mjs index d05aa24a..fed8f6c3 100644 --- a/tests/operations/tests/TextIntegerConverter.mjs +++ b/tests/operations/tests/TextIntegerConverter.mjs @@ -179,4 +179,21 @@ TestRegister.addTests([ }, ], }, + { + name: "Text-Integer Conversion non-Latin1 character in input", + input: "61 ce 93 61", + expectedOutput: +`Character at position 1 exceeds Latin-1 range (0-255). +Only ASCII and Latin-1 characters are supported.`, + recipeConfig: [ + { + "op": "From Hex", + "args": ["Auto"] + }, + { + op: "Text-Integer Conversion", + args: ["Decimal"], + }, + ], + }, ]);