mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Initial sketch of automated indent tests
This commit is contained in:
parent
eefa5662e6
commit
67f2c7149c
14 changed files with 257 additions and 0 deletions
19
lua/tests/indent/python_spec.lua
Normal file
19
lua/tests/indent/python_spec.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
local whole_file = require('nvim-treesitter.test_utils').indent_whole_file
|
||||
|
||||
describe('indent python', function()
|
||||
local files = {
|
||||
'aligned_indent.py',
|
||||
'basic_blocks.py',
|
||||
'basic_collections.py',
|
||||
'branches.py',
|
||||
'comprehensions.py',
|
||||
'control_flow.py',
|
||||
'hanging_indent.py',
|
||||
'join_lines.py',
|
||||
'nested_collections.py',
|
||||
'strings.py',
|
||||
}
|
||||
for _, file in ipairs(files) do
|
||||
it(file, function() whole_file('lua/tests/indent/python/' .. file) end)
|
||||
end
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue