Skip to content

Commit

Permalink
More text block test cases
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 695356983
  • Loading branch information
cushon authored and google-java-format Team committed Nov 11, 2024
1 parent d4b3f0d commit fc31690
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
+
"""
...
""";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,34 @@ ipsum
"""
bar
""");
"""
hello
"""
.codePoints()
.forEach(System.err::println);
String s =
"""
foo
"""
+ """
bar
""";
String t =
"""
foo
"""
+
"""
bar
""";
String u =
stringVariableOne
+ """
...
"""
+ stringVariableTwo
+ """
...
""";
}
}

0 comments on commit fc31690

Please sign in to comment.