diff options
Diffstat (limited to 'tests/indent/yuck_spec.lua')
| -rw-r--r-- | tests/indent/yuck_spec.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/indent/yuck_spec.lua b/tests/indent/yuck_spec.lua new file mode 100644 index 000000000..6ce15de6f --- /dev/null +++ b/tests/indent/yuck_spec.lua @@ -0,0 +1,19 @@ +local Runner = require("tests.indent.common").Runner +local run = Runner:new(it, "tests/indent/yuck", { + tabstop = 2, + shiftwidth = 2, + expandtab = true, +}) + +describe("indent yuck", function() + describe("whole file:", function() + run:whole_file(".", { + expected_failures = {}, + }) + end) + + describe("new line:", function() + run:new_line("indent.yuck", { on_line = 13, text = ":box1 parameter", indent = 4 }) + run:new_line("indent.yuck", { on_line = 17, text = ")", indent = 0 }) + end) +end) |
