mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
refactor: change formatting of should_readFirstDiagram_decode_correctly_different_line_endings
for more readability
This commit is contained in:
parent
0c7f026f6c
commit
90198c40d8
@ -217,12 +217,15 @@ class PipeTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
@ValueSource(strings = { "ab\nc", // *nix, macOsX
|
@ValueSource(strings = {
|
||||||
|
"ab\nc", // *nix, macOsX
|
||||||
"ab\rc", // pre-macOsX macs
|
"ab\rc", // pre-macOsX macs
|
||||||
"ab\r\nc", // Windows
|
"ab\r\nc", // Windows
|
||||||
// the case \n\r is handled as 2 new lines, thus not added
|
// the case \n\r is handled as 2 new lines, thus not added
|
||||||
|
"ab\nc\n",
|
||||||
"ab\nc\n", "ab\nc\r", "ab\nc\r\n" })
|
"ab\nc\r",
|
||||||
|
"ab\nc\r\n"
|
||||||
|
})
|
||||||
void should_readFirstDiagram_decode_correctly_different_line_endings(String input) throws IOException {
|
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());
|
pipe = new Pipe(option, null, new ByteArrayInputStream(input.getBytes(UTF_8)), UTF_8.name());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user