blob: 386131036e80ca6b15de4685a8f4802be061fd1b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
local whole_file = require('nvim-treesitter.test_utils').indent_whole_file
local scan_dir = require('plenary.scandir').scan_dir
describe('indent C:', function()
describe('whole file:', function()
local files = scan_dir('lua/tests/indent/c');
for _, file in ipairs(files) do
it(vim.fn.fnamemodify(file, ':t'), function()
whole_file(file, {
tabstop = 4,
shiftwidth = 4,
softtabstop = 0,
expandtab = true,
})
end)
end
end)
end)
|