test: add Auto delimiter tests for newline and signed values

Covers additional edge cases for the Auto delimiter fix:
- newline-separated input
- signed (negative) values with Auto delimiter

Ref: #2217
This commit is contained in:
min23asdw 2026-03-22 02:10:42 +07:00
parent ae0e989635
commit d09ba82159

View File

@ -63,4 +63,26 @@ TestRegister.addTests([
},
],
},
{
name: "From Decimal with Auto delimiter (newline)",
input: "72\n101\n108\n108\n111",
expectedOutput: "Hello",
recipeConfig: [
{
op: "From Decimal",
args: ["Auto", false]
},
],
},
{
name: "From Decimal with Auto delimiter and signed values",
input: "-130 -140 -152 -151 115 33 0 -1",
expectedOutput: "~this!\u0000\u00ff",
recipeConfig: [
{
op: "From Decimal",
args: ["Auto", true]
},
],
},
]);