diff options
Diffstat (limited to 'tests/indent/lua_spec.lua')
| -rw-r--r-- | tests/indent/lua_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/indent/lua_spec.lua b/tests/indent/lua_spec.lua index d198c5cca..2577e4837 100644 --- a/tests/indent/lua_spec.lua +++ b/tests/indent/lua_spec.lua @@ -22,7 +22,9 @@ describe("indent Lua:", function() run:new_line("comment.lua", { on_line = 5, text = "multiline", indent = " " }, "expected failure", XFAIL) run:new_line("func.lua", { on_line = 1, text = "x = x + 1", indent = 2 }) run:new_line("func.lua", { on_line = 2, text = "y = y + 1", indent = 4 }) + run:new_line("func.lua", { on_line = 4, text = "y = y + 1", indent = 2 }) run:new_line("func.lua", { on_line = 5, text = "3,", indent = 4 }) + run:new_line("func.lua", { on_line = 9, text = "x = x + 1", indent = 0 }) run:new_line("string.lua", { on_line = 1, text = "x", indent = 0 }) run:new_line("string.lua", { on_line = 2, text = "x", indent = 0 }) run:new_line("string.lua", { on_line = 3, text = "x", indent = 2 }) @@ -34,5 +36,7 @@ describe("indent Lua:", function() run:new_line("cond.lua", { on_line = 5, text = "x = x + 1", indent = 2 }) run:new_line("cond.lua", { on_line = 7, text = "x = x + 1", indent = 2 }) run:new_line("cond.lua", { on_line = 8, text = "x = x + 1", indent = 4 }) + run:new_line("cond.lua", { on_line = 10, text = "x = x + 1", indent = 2 }) + run:new_line("cond.lua", { on_line = 12, text = "x = x + 1", indent = 0 }) end) end) |
