diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-25 01:19:55 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-09-25 01:19:55 +0200 |
commit | 69011b90d8e9d15dbf45479df2f4f08658970a16 (patch) | |
tree | 7fda0f5c5f70428740801cd4e18a71e1a6fd8324 /test/pretty/resource | |
parent | 230cd667657ab5c1e07819b18294c698bf17f9a5 (diff) | |
download | lombok-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')
-rw-r--r-- | test/pretty/resource/after/TextBlocks.java | 25 | ||||
-rw-r--r-- | test/pretty/resource/before/TextBlocks.java | 24 |
2 files changed, 49 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"""; +} 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"""; +} |