diff options
Diffstat (limited to 'tests/indent/c_spec.lua')
| -rw-r--r-- | tests/indent/c_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/indent/c_spec.lua b/tests/indent/c_spec.lua index 98311c772..1089ee4eb 100644 --- a/tests/indent/c_spec.lua +++ b/tests/indent/c_spec.lua @@ -9,6 +9,13 @@ local opts = { expandtab = true, } +local run = function(file, spec, title) + title = title and title or tostring(spec.on_line) + it(string.format('%s[%s]', file, title), function() + new_line('tests/indent/c/' .. file, spec, opts) + end) +end + describe('indent C:', function() describe('whole file:', function() local files = scan_dir('tests/indent/c'); @@ -20,13 +27,6 @@ describe('indent C:', function() end) describe('new line:', function() - local run = function(file, spec, title) - title = title and title or tostring(spec.on_line) - it(string.format('%s[%s]', file, title), function() - new_line('tests/indent/c/' .. file, spec, opts) - end) - end - run('array.c', { on_line = 2, text = '0,', indent = 4 }) run('cond.c', { on_line = 3, text = 'x++;', indent = 8 }) run('cond.c', { on_line = 8, text = 'x++;', indent = 8 }) |
