test(go): add cases for newlines de-indentation

test(go): combine new indent test cases

test(go): add incorrect indent after var closing )

this case does not work correctly already so add that in since this PR
does not address that case

test(go): set current lines in indent test

test(go): simplify test case
This commit is contained in:
Akin Sowemimo 2022-04-18 12:19:31 +01:00 committed by Stephan Seitz
parent eb0eb67bc5
commit bca65c068b
2 changed files with 12 additions and 0 deletions

View file

@ -18,4 +18,8 @@ describe("indent Go:", function()
describe("new line:", function()
run:new_line("issue-2369.go", { on_line = 13, text = "// some comment", indent = 1 })
end)
describe("new line after )/}:", function()
run:new_line("issue-2369-newline.go", { on_line = 8, text = "// comment", indent = 0 })
end)
end)