From 90198c40d8faed1d764980ded635efba9f0cde18 Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:01:45 +0000 Subject: [PATCH] refactor: change formatting of `should_readFirstDiagram_decode_correctly_different_line_endings` for more readability --- test/net/sourceforge/plantuml/PipeTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/net/sourceforge/plantuml/PipeTest.java b/test/net/sourceforge/plantuml/PipeTest.java index 0e63f6fcf..671928c78 100644 --- a/test/net/sourceforge/plantuml/PipeTest.java +++ b/test/net/sourceforge/plantuml/PipeTest.java @@ -217,12 +217,15 @@ class PipeTest { } @ParameterizedTest - @ValueSource(strings = { "ab\nc", // *nix, macOsX + @ValueSource(strings = { + "ab\nc", // *nix, macOsX "ab\rc", // pre-macOsX macs "ab\r\nc", // Windows // the case \n\r is handled as 2 new lines, thus not added - - "ab\nc\n", "ab\nc\r", "ab\nc\r\n" }) + "ab\nc\n", + "ab\nc\r", + "ab\nc\r\n" + }) void should_readFirstDiagram_decode_correctly_different_line_endings(String input) throws IOException { pipe = new Pipe(option, null, new ByteArrayInputStream(input.getBytes(UTF_8)), UTF_8.name());