aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/before
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/before
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/before')
-rw-r--r--test/pretty/resource/before/TextBlocks.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/pretty/resource/before/TextBlocks.java b/test/pretty/resource/before/TextBlocks.java
new file mode 100644
index 00000000..247621c0
--- /dev/null
+++ b/test/pretty/resource/before/TextBlocks.java
@@ -0,0 +1,24 @@
+// version 13:
+public class TextBlocks {
+ private String example = """
+ This should not be indented.\nline 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\n bar""" + "hey" + """
+ weird!""";
+
+ private String stringFolding = "hmmm" + """
+ line1
+ line2""";
+}