From c96b942fc2456ca60c26e2937313ab8b1b83eaa9 Mon Sep 17 00:00:00 2001 From: Thomas <31802793+ThomasNotTom@users.noreply.github.com> Date: Sat, 7 Jun 2025 16:49:21 +0100 Subject: [PATCH] Create line break test --- tests/operations/tests/LineBreak.mjs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/operations/tests/LineBreak.mjs diff --git a/tests/operations/tests/LineBreak.mjs b/tests/operations/tests/LineBreak.mjs new file mode 100644 index 00000000..9ebe07d7 --- /dev/null +++ b/tests/operations/tests/LineBreak.mjs @@ -0,0 +1,21 @@ +/** + * @author ThomasNotTom + * @copyright Crown Copyright 2025 + * @license Apache-2.0 + */ +import TestRegister from "../../lib/TestRegister.mjs"; + +TestRegister.addTests([ + { + // Check line remains unbroken + name: "Line Break: No break", + input: "Hello, world!", + expectedOutput: "Hello, world!", + recipeConfig: [ + { + "op": "Line Break", + "args": [32, false] + } + ] + } +]);