Fixed a bug where Java enum body indentation was not correct

Added test for Java enum indentation
This commit is contained in:
Daniel Woznicki 2022-02-24 17:40:14 -08:00 committed by Stephan Seitz
parent 6fcf9b72ef
commit 1b47af43ce
3 changed files with 7 additions and 0 deletions

View file

@ -18,5 +18,6 @@ describe("indent Java:", function()
describe("new line:", function()
run:new_line("method.java", { on_line = 1, text = "void foo() {}", indent = 2 })
run:new_line("issue_2571.java", { on_line = 5, text = "void bar() {}", indent = 2 })
run:new_line("enum.java", { on_line = 2, text = "THING_B,", indent = 2 })
end)
end)