2023-06-12 09:54:30 -06:00
|
|
|
local Runner = require('tests.indent.common').Runner
|
|
|
|
|
local run = Runner:new(it, 'tests/indent/yuck', {
|
2024-02-13 23:00:53 +07:00
|
|
|
tabstop = 2,
|
|
|
|
|
shiftwidth = 2,
|
|
|
|
|
expandtab = true,
|
|
|
|
|
})
|
|
|
|
|
|
2023-06-12 09:54:30 -06:00
|
|
|
describe('indent yuck', function()
|
|
|
|
|
describe('whole file:', function()
|
|
|
|
|
run:whole_file('.', {
|
2024-02-13 23:00:53 +07:00
|
|
|
expected_failures = {},
|
|
|
|
|
})
|
|
|
|
|
end)
|
|
|
|
|
|
2023-06-12 09:54:30 -06:00
|
|
|
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 })
|
2024-02-13 23:00:53 +07:00
|
|
|
end)
|
|
|
|
|
end)
|