aboutsummaryrefslogtreecommitdiffstats
path: root/lua/tests/indent/c_spec.lua
blob: 5176312b605b999427566472bec63fbdba0f37f1 (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

describe('indent C', function()
  local files = {
    'basic.c',
    'no_braces.c',
  }
  for _, file in ipairs(files) do
    it(file, function()
      whole_file('lua/tests/indent/c/' .. file, {
        tabstop = 4,
        shiftwidth = 4,
        softtabstop = 0,
        expandtab = true,
      })
    end)
  end
end)