From 67f2c7149c0de39248f1bdeba1a4303b156c3199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Sat, 13 Mar 2021 22:46:45 +0100 Subject: Initial sketch of automated indent tests --- lua/tests/indent/python_spec.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/tests/indent/python_spec.lua (limited to 'lua/tests/indent/python_spec.lua') diff --git a/lua/tests/indent/python_spec.lua b/lua/tests/indent/python_spec.lua new file mode 100644 index 00000000..9fcdf463 --- /dev/null +++ b/lua/tests/indent/python_spec.lua @@ -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) -- cgit v1.2.3