From fc31690af3b057b0f9eeb3d78d8687c0831e0a1b Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Mon, 11 Nov 2024 08:46:09 -0800 Subject: [PATCH] More text block test cases PiperOrigin-RevId: 695356983 --- .../googlejavaformat/java/testdata/RSLs.input | 27 +++++++++++++++++ .../java/testdata/RSLs.output | 29 +++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.input b/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.input index e557ea2ce..6eaa28558 100644 --- a/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.input +++ b/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.input @@ -57,5 +57,32 @@ ipsum /* bar= */ """ bar """); + """ + hello + """.codePoints().forEach(System.err::println); + String s = + """ + foo + """ + + """ + bar + """; + String t = + """ +foo +""" + + """ +bar +"""; + String u = + stringVariableOne + + + """ + ... + """ + stringVariableTwo + + + """ + ... + """; } } diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.output b/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.output index cfe77c934..9993f5aa2 100644 --- a/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.output +++ b/core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.output @@ -74,5 +74,34 @@ ipsum """ bar """); + """ + hello + """ + .codePoints() + .forEach(System.err::println); + String s = + """ + foo + """ + + """ + bar + """; + String t = +""" +foo +""" + + +""" +bar +"""; + String u = + stringVariableOne + + """ + ... + """ + + stringVariableTwo + + """ + ... + """; } }