Skip to content

Commit fc31690

Browse files
cushongoogle-java-format Team
authored andcommitted
More text block test cases
PiperOrigin-RevId: 695356983
1 parent d4b3f0d commit fc31690

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.input

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,32 @@ ipsum
5757
/* bar= */ """
5858
bar
5959
""");
60+
"""
61+
hello
62+
""".codePoints().forEach(System.err::println);
63+
String s =
64+
"""
65+
foo
66+
"""
67+
+ """
68+
bar
69+
""";
70+
String t =
71+
"""
72+
foo
73+
"""
74+
+ """
75+
bar
76+
""";
77+
String u =
78+
stringVariableOne
79+
+
80+
"""
81+
...
82+
""" + stringVariableTwo
83+
+
84+
"""
85+
...
86+
""";
6087
}
6188
}

core/src/test/resources/com/google/googlejavaformat/java/testdata/RSLs.output

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,34 @@ ipsum
7474
"""
7575
bar
7676
""");
77+
"""
78+
hello
79+
"""
80+
.codePoints()
81+
.forEach(System.err::println);
82+
String s =
83+
"""
84+
foo
85+
"""
86+
+ """
87+
bar
88+
""";
89+
String t =
90+
"""
91+
foo
92+
"""
93+
+
94+
"""
95+
bar
96+
""";
97+
String u =
98+
stringVariableOne
99+
+ """
100+
...
101+
"""
102+
+ stringVariableTwo
103+
+ """
104+
...
105+
""";
77106
}
78107
}

0 commit comments

Comments
 (0)