aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/resources/com/google/googlejavaformat/java/testdata/SwitchRecord.output
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/resources/com/google/googlejavaformat/java/testdata/SwitchRecord.output')
-rw-r--r--core/src/test/resources/com/google/googlejavaformat/java/testdata/SwitchRecord.output46
1 files changed, 46 insertions, 0 deletions
diff --git a/core/src/test/resources/com/google/googlejavaformat/java/testdata/SwitchRecord.output b/core/src/test/resources/com/google/googlejavaformat/java/testdata/SwitchRecord.output
new file mode 100644
index 0000000..89d212f
--- /dev/null
+++ b/core/src/test/resources/com/google/googlejavaformat/java/testdata/SwitchRecord.output
@@ -0,0 +1,46 @@
+record SwitchRecord(int i) {
+ int x(Object o) {
+ return switch (o) {
+ case SwitchRecord(int i) -> i;
+ default -> 0;
+ };
+ }
+
+ int f(Object o) {
+ return switch (o) {
+ case SwitchRecord(
+ int one,
+ int two,
+ int three,
+ int four,
+ int five,
+ int six,
+ int seven,
+ int eight,
+ int nine) ->
+ nine;
+ default -> 0;
+ };
+ }
+
+ int g(Object o) {
+ return switch (o) {
+ case SwitchRecord(
+ int one,
+ int two,
+ int three,
+ int four,
+ int five,
+ int six,
+ int seven,
+ int eight,
+ int nine) ->
+ System.err.println(
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor"
+ + " incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis"
+ + " nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo"
+ + " consequat.");
+ default -> 0;
+ };
+ }
+}