Add test for non-Latin1 character code

This commit is contained in:
GCHQDeveloper581 2026-03-08 13:28:37 +00:00
parent 96bc24f994
commit 3b581888a9
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -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"],
},
],
},
]);