From d09ba82159c62c529aaae9ad836d3baf41417c58 Mon Sep 17 00:00:00 2001 From: min23asdw Date: Sun, 22 Mar 2026 02:10:42 +0700 Subject: [PATCH] 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 --- tests/operations/tests/FromDecimal.mjs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/operations/tests/FromDecimal.mjs b/tests/operations/tests/FromDecimal.mjs index b94e1cd8..a8711840 100644 --- a/tests/operations/tests/FromDecimal.mjs +++ b/tests/operations/tests/FromDecimal.mjs @@ -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] + }, + ], + }, ]);