diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/indent/java/constructor_with_arguments_on_multiple_lines.java | 6 | ||||
| -rw-r--r-- | tests/indent/java/method_with_arguments_on_multiple_lines.java | 6 | ||||
| -rw-r--r-- | tests/indent/java_spec.lua | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/indent/java/constructor_with_arguments_on_multiple_lines.java b/tests/indent/java/constructor_with_arguments_on_multiple_lines.java new file mode 100644 index 000000000..bb97d4c62 --- /dev/null +++ b/tests/indent/java/constructor_with_arguments_on_multiple_lines.java @@ -0,0 +1,6 @@ +public class Testo { + public Testo( + String a + ) { + } +} diff --git a/tests/indent/java/method_with_arguments_on_multiple_lines.java b/tests/indent/java/method_with_arguments_on_multiple_lines.java new file mode 100644 index 000000000..7eb7db18b --- /dev/null +++ b/tests/indent/java/method_with_arguments_on_multiple_lines.java @@ -0,0 +1,6 @@ +public class Testo { + void hello( + String a + ) { + } +} diff --git a/tests/indent/java_spec.lua b/tests/indent/java_spec.lua index 8629f6a3a..33003fd40 100644 --- a/tests/indent/java_spec.lua +++ b/tests/indent/java_spec.lua @@ -31,5 +31,7 @@ describe("indent Java:", function() ) run:new_line("issue_2583.java", { on_line = 4, text = "int x = 1;", indent = 4 }) run:new_line("method_chaining.java", { on_line = 4, text = '.append("b");', indent = 6 }) + run:new_line("constructor_with_arguments_on_multiple_lines.java", { on_line = 4, text = "}", indent = 2 }) + run:new_line("method_with_arguments_on_multiple_lines.java", { on_line = 4, text = "}", indent = 2 }) end) end) |
