aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/after
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-09-25 01:19:55 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-09-25 01:19:55 +0200
commit69011b90d8e9d15dbf45479df2f4f08658970a16 (patch)
tree7fda0f5c5f70428740801cd4e18a71e1a6fd8324 /test/pretty/resource/after
parent230cd667657ab5c1e07819b18294c698bf17f9a5 (diff)
downloadlombok-69011b90d8e9d15dbf45479df2f4f08658970a16.tar.gz
lombok-69011b90d8e9d15dbf45479df2f4f08658970a16.tar.bz2
lombok-69011b90d8e9d15dbf45479df2f4f08658970a16.zip
[jdk13] Added support for printing text blocks (triple quoted strings) in text block form
Diffstat (limited to 'test/pretty/resource/after')
-rw-r--r--test/pretty/resource/after/TextBlocks.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/pretty/resource/after/TextBlocks.java b/test/pretty/resource/after/TextBlocks.java
new file mode 100644
index 00000000..4d2fc272
--- /dev/null
+++ b/test/pretty/resource/after/TextBlocks.java
@@ -0,0 +1,25 @@
+public class TextBlocks {
+ private String example = """
+ This should not be indented.
+ line 2
+ line 3
+ """;
+
+ private String ex2 = """
+ This should be though.
+ """;
+
+ private String ex3 = "This is a simple\nstring";
+
+ private String ex4 = """
+ """;
+
+ private String bizarroDent = """
+ foo
+ bar""" + "hey" + """
+ weird!""";
+
+ private String stringFolding = "hmmm" + """
+ line1
+ line2""";
+}