aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJędrzej Boczar <yendreij@gmail.com>2021-04-22 20:53:30 +0200
committerKiyan <yazdani.kiyan@protonmail.com>2021-04-23 21:21:38 +0200
commit63a88c873f3643aad9208488765dc53618edd40e (patch)
treefb233a54b0dae8a6af1a12dfecb9cd85cbdb4f64
parentignore Lua indent test files when doing style-check (diff)
downloadnvim-treesitter-63a88c873f3643aad9208488765dc53618edd40e.tar
nvim-treesitter-63a88c873f3643aad9208488765dc53618edd40e.tar.gz
nvim-treesitter-63a88c873f3643aad9208488765dc53618edd40e.tar.bz2
nvim-treesitter-63a88c873f3643aad9208488765dc53618edd40e.tar.lz
nvim-treesitter-63a88c873f3643aad9208488765dc53618edd40e.tar.xz
nvim-treesitter-63a88c873f3643aad9208488765dc53618edd40e.tar.zst
nvim-treesitter-63a88c873f3643aad9208488765dc53618edd40e.zip
move all tests to top-level tests/ directory
-rw-r--r--lua/tests/indent/cpp_spec.lua62
-rwxr-xr-xscripts/run_tests.sh2
-rwxr-xr-xscripts/style-check.sh2
-rw-r--r--tests/indent/c/array.c (renamed from lua/tests/indent/c/array.c)0
-rw-r--r--tests/indent/c/comment.c (renamed from lua/tests/indent/c/comment.c)0
-rw-r--r--tests/indent/c/cond.c (renamed from lua/tests/indent/c/cond.c)0
-rw-r--r--tests/indent/c/enum.c (renamed from lua/tests/indent/c/enum.c)0
-rw-r--r--tests/indent/c/expr.c (renamed from lua/tests/indent/c/expr.c)0
-rw-r--r--tests/indent/c/func.c (renamed from lua/tests/indent/c/func.c)0
-rw-r--r--tests/indent/c/label.c (renamed from lua/tests/indent/c/label.c)0
-rw-r--r--tests/indent/c/loop.c (renamed from lua/tests/indent/c/loop.c)0
-rw-r--r--tests/indent/c/no_braces.c (renamed from lua/tests/indent/c/no_braces.c)0
-rw-r--r--tests/indent/c/preproc_cond.c (renamed from lua/tests/indent/c/preproc_cond.c)0
-rw-r--r--tests/indent/c/preproc_func.c (renamed from lua/tests/indent/c/preproc_func.c)0
-rw-r--r--tests/indent/c/string.c (renamed from lua/tests/indent/c/string.c)0
-rw-r--r--tests/indent/c/struct.c (renamed from lua/tests/indent/c/struct.c)0
-rw-r--r--tests/indent/c/switch.c (renamed from lua/tests/indent/c/switch.c)0
-rw-r--r--tests/indent/c/ternary.c (renamed from lua/tests/indent/c/ternary.c)0
-rw-r--r--tests/indent/c_spec.lua (renamed from lua/tests/indent/c_spec.lua)4
-rw-r--r--tests/indent/cpp/access.cpp (renamed from lua/tests/indent/cpp/access.cpp)0
-rw-r--r--tests/indent/cpp/class.cpp (renamed from lua/tests/indent/cpp/class.cpp)0
-rw-r--r--tests/indent/cpp/stream.cpp (renamed from lua/tests/indent/cpp/stream.cpp)0
-rw-r--r--tests/indent/cpp_spec.lua62
-rw-r--r--tests/indent/lua/comment.lua (renamed from lua/tests/indent/lua/comment.lua)0
-rw-r--r--tests/indent/lua/cond.lua (renamed from lua/tests/indent/lua/cond.lua)0
-rw-r--r--tests/indent/lua/func.lua (renamed from lua/tests/indent/lua/func.lua)0
-rw-r--r--tests/indent/lua/loop.lua (renamed from lua/tests/indent/lua/loop.lua)0
-rw-r--r--tests/indent/lua/string.lua (renamed from lua/tests/indent/lua/string.lua)0
-rw-r--r--tests/indent/lua/table.lua (renamed from lua/tests/indent/lua/table.lua)0
-rw-r--r--tests/indent/lua_spec.lua (renamed from lua/tests/indent/lua_spec.lua)4
-rw-r--r--tests/indent/python/aligned_indent.py (renamed from lua/tests/indent/python/aligned_indent.py)0
-rw-r--r--tests/indent/python/basic_blocks.py (renamed from lua/tests/indent/python/basic_blocks.py)0
-rw-r--r--tests/indent/python/basic_collections.py (renamed from lua/tests/indent/python/basic_collections.py)0
-rw-r--r--tests/indent/python/branches.py (renamed from lua/tests/indent/python/branches.py)0
-rw-r--r--tests/indent/python/comprehensions.py (renamed from lua/tests/indent/python/comprehensions.py)0
-rw-r--r--tests/indent/python/control_flow.py (renamed from lua/tests/indent/python/control_flow.py)0
-rw-r--r--tests/indent/python/hanging_indent.py (renamed from lua/tests/indent/python/hanging_indent.py)0
-rw-r--r--tests/indent/python/join_lines.py (renamed from lua/tests/indent/python/join_lines.py)0
-rw-r--r--tests/indent/python/nested_collections.py (renamed from lua/tests/indent/python/nested_collections.py)0
-rw-r--r--tests/indent/python/strings.py (renamed from lua/tests/indent/python/strings.py)0
-rw-r--r--tests/indent/python_spec.lua (renamed from lua/tests/indent/python_spec.lua)4
-rw-r--r--tests/indent/rust/array.rs (renamed from lua/tests/indent/rust/array.rs)0
-rw-r--r--tests/indent/rust/comment.rs (renamed from lua/tests/indent/rust/comment.rs)0
-rw-r--r--tests/indent/rust/cond.rs (renamed from lua/tests/indent/rust/cond.rs)0
-rw-r--r--tests/indent/rust/enum.rs (renamed from lua/tests/indent/rust/enum.rs)0
-rw-r--r--tests/indent/rust/func.rs (renamed from lua/tests/indent/rust/func.rs)0
-rw-r--r--tests/indent/rust/impl.rs (renamed from lua/tests/indent/rust/impl.rs)0
-rw-r--r--tests/indent/rust/loop.rs (renamed from lua/tests/indent/rust/loop.rs)0
-rw-r--r--tests/indent/rust/macro.rs (renamed from lua/tests/indent/rust/macro.rs)0
-rw-r--r--tests/indent/rust/match.rs (renamed from lua/tests/indent/rust/match.rs)0
-rw-r--r--tests/indent/rust/mod.rs (renamed from lua/tests/indent/rust/mod.rs)0
-rw-r--r--tests/indent/rust/string.rs (renamed from lua/tests/indent/rust/string.rs)0
-rw-r--r--tests/indent/rust/struct.rs (renamed from lua/tests/indent/rust/struct.rs)0
-rw-r--r--tests/indent/rust/trait.rs (renamed from lua/tests/indent/rust/trait.rs)0
-rw-r--r--tests/indent/rust/where.rs (renamed from lua/tests/indent/rust/where.rs)0
-rw-r--r--tests/indent/rust_spec.lua (renamed from lua/tests/indent/rust_spec.lua)4
56 files changed, 72 insertions, 72 deletions
diff --git a/lua/tests/indent/cpp_spec.lua b/lua/tests/indent/cpp_spec.lua
deleted file mode 100644
index fd1f35799..000000000
--- a/lua/tests/indent/cpp_spec.lua
+++ /dev/null
@@ -1,62 +0,0 @@
-local whole_file = require('nvim-treesitter.test_utils').indent_whole_file
-local new_line = require('nvim-treesitter.test_utils').indent_new_line
-local scan_dir = require('plenary.scandir').scan_dir
-local Path = require('plenary.path')
-
-local opts = {
- tabstop = 4,
- shiftwidth = 4,
- softtabstop = 0,
- expandtab = true,
- filetype = 'cpp',
-}
-
-local get_name = function(file)
- return Path:new(file):make_relative('lua/tests/indent')
-end
-
-describe('indent C++:', function()
- describe('whole file:', function()
- local files = scan_dir('lua/tests/indent/c');
- vim.list_extend(files, scan_dir('lua/tests/indent/cpp'))
-
- for _, file in ipairs(files) do
- it(get_name(file), function()
- whole_file(file, opts)
- end)
- end
- 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]', get_name(file), title), function()
- new_line(file, spec, opts)
- end)
- end
-
- run('lua/tests/indent/cpp/access.cpp', { on_line = 3, text = 'protected:', indent = 0 })
- run('lua/tests/indent/cpp/class.cpp', { on_line = 2, text = 'using T = int;', indent = 4 })
- run('lua/tests/indent/cpp/stream.cpp', { on_line = 5, text = '<< x + 3', indent = 8 })
-
- -- TODO: find a clean way to import these from c_spec.lua
- run('lua/tests/indent/c/array.c', { on_line = 2, text = '0,', indent = 4 })
- run('lua/tests/indent/c/cond.c', { on_line = 3, text = 'x++;', indent = 8 })
- run('lua/tests/indent/c/cond.c', { on_line = 8, text = 'x++;', indent = 8 })
- run('lua/tests/indent/c/expr.c', { on_line = 10, text = '2 *', indent = 8 })
- run('lua/tests/indent/c/func.c', { on_line = 17, text = 'int z,', indent = 4 })
- run('lua/tests/indent/c/label.c', { on_line = 3, text = 'normal:', indent = 0 })
- run('lua/tests/indent/c/loop.c', { on_line = 3, text = 'x++;', indent = 8 })
- run('lua/tests/indent/c/preproc_cond.c', { on_line = 5, text = 'x++;', indent = 4 })
- run('lua/tests/indent/c/preproc_func.c', { on_line = 3, text = 'x++; \\', indent = 8 })
- run('lua/tests/indent/c/string.c', { on_line = 1, text = 'brave new \\', indent = 0 })
- run('lua/tests/indent/c/string.c', { on_line = 4, text = '"brave new "', indent = 4 })
- run('lua/tests/indent/c/struct.c', { on_line = 4, text = 'int y;', indent = 8 })
- run('lua/tests/indent/c/switch.c', { on_line = 3, text = 'x++;', indent = 12 })
- run('lua/tests/indent/c/ternary.c', { on_line = 4, text = ': (x == 0) : 0', indent = 8 })
- -- the line after inserted one will be left with wrong indent but we only care about the inserted one
- run('lua/tests/indent/c/no_braces.c', { on_line = 4, text = 'x++;', indent = 8 })
- run('lua/tests/indent/c/no_braces.c', { on_line = 7, text = 'x++;', indent = 8 })
- run('lua/tests/indent/c/no_braces.c', { on_line = 10, text = 'x++;', indent = 8 })
- end)
-end)
diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh
index 569a2d5e8..c7800d50f 100755
--- a/scripts/run_tests.sh
+++ b/scripts/run_tests.sh
@@ -5,7 +5,7 @@ cd $HERE/..
run() {
nvim --headless --noplugin -u scripts/minimal_init.lua \
- -c "PlenaryBustedDirectory lua/tests/indent/ { minimal_init = './scripts/minimal_init.lua' }"
+ -c "PlenaryBustedDirectory tests/indent/ { minimal_init = './scripts/minimal_init.lua' }"
}
if [[ $1 = '--summary' ]]; then
diff --git a/scripts/style-check.sh b/scripts/style-check.sh
index bf3b906f3..8dfb53aa2 100755
--- a/scripts/style-check.sh
+++ b/scripts/style-check.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# ignore indent test files
-luacheck `find -name "*.lua" -not -path "./lua/tests/indent/lua/*"` --codes
+luacheck `find -name "*.lua" -not -path "./tests/indent/lua/*"` --codes
diff --git a/lua/tests/indent/c/array.c b/tests/indent/c/array.c
index 5bb67c2c8..5bb67c2c8 100644
--- a/lua/tests/indent/c/array.c
+++ b/tests/indent/c/array.c
diff --git a/lua/tests/indent/c/comment.c b/tests/indent/c/comment.c
index b32de8218..b32de8218 100644
--- a/lua/tests/indent/c/comment.c
+++ b/tests/indent/c/comment.c
diff --git a/lua/tests/indent/c/cond.c b/tests/indent/c/cond.c
index 1ecb22d98..1ecb22d98 100644
--- a/lua/tests/indent/c/cond.c
+++ b/tests/indent/c/cond.c
diff --git a/lua/tests/indent/c/enum.c b/tests/indent/c/enum.c
index bb6b0dc30..bb6b0dc30 100644
--- a/lua/tests/indent/c/enum.c
+++ b/tests/indent/c/enum.c
diff --git a/lua/tests/indent/c/expr.c b/tests/indent/c/expr.c
index cafb11120..cafb11120 100644
--- a/lua/tests/indent/c/expr.c
+++ b/tests/indent/c/expr.c
diff --git a/lua/tests/indent/c/func.c b/tests/indent/c/func.c
index c188acc01..c188acc01 100644
--- a/lua/tests/indent/c/func.c
+++ b/tests/indent/c/func.c
diff --git a/lua/tests/indent/c/label.c b/tests/indent/c/label.c
index 36b40e23a..36b40e23a 100644
--- a/lua/tests/indent/c/label.c
+++ b/tests/indent/c/label.c
diff --git a/lua/tests/indent/c/loop.c b/tests/indent/c/loop.c
index facaebb6b..facaebb6b 100644
--- a/lua/tests/indent/c/loop.c
+++ b/tests/indent/c/loop.c
diff --git a/lua/tests/indent/c/no_braces.c b/tests/indent/c/no_braces.c
index 544ac01d0..544ac01d0 100644
--- a/lua/tests/indent/c/no_braces.c
+++ b/tests/indent/c/no_braces.c
diff --git a/lua/tests/indent/c/preproc_cond.c b/tests/indent/c/preproc_cond.c
index b85440aa9..b85440aa9 100644
--- a/lua/tests/indent/c/preproc_cond.c
+++ b/tests/indent/c/preproc_cond.c
diff --git a/lua/tests/indent/c/preproc_func.c b/tests/indent/c/preproc_func.c
index f1f38feb9..f1f38feb9 100644
--- a/lua/tests/indent/c/preproc_func.c
+++ b/tests/indent/c/preproc_func.c
diff --git a/lua/tests/indent/c/string.c b/tests/indent/c/string.c
index 2d5177e00..2d5177e00 100644
--- a/lua/tests/indent/c/string.c
+++ b/tests/indent/c/string.c
diff --git a/lua/tests/indent/c/struct.c b/tests/indent/c/struct.c
index 8cc2b6b21..8cc2b6b21 100644
--- a/lua/tests/indent/c/struct.c
+++ b/tests/indent/c/struct.c
diff --git a/lua/tests/indent/c/switch.c b/tests/indent/c/switch.c
index 4003bdb1d..4003bdb1d 100644
--- a/lua/tests/indent/c/switch.c
+++ b/tests/indent/c/switch.c
diff --git a/lua/tests/indent/c/ternary.c b/tests/indent/c/ternary.c
index 2e40b382e..2e40b382e 100644
--- a/lua/tests/indent/c/ternary.c
+++ b/tests/indent/c/ternary.c
diff --git a/lua/tests/indent/c_spec.lua b/tests/indent/c_spec.lua
index 2850023ab..98311c772 100644
--- a/lua/tests/indent/c_spec.lua
+++ b/tests/indent/c_spec.lua
@@ -11,7 +11,7 @@ local opts = {
describe('indent C:', function()
describe('whole file:', function()
- local files = scan_dir('lua/tests/indent/c');
+ local files = scan_dir('tests/indent/c');
for _, file in ipairs(files) do
it(vim.fn.fnamemodify(file, ':t'), function()
whole_file(file, opts)
@@ -23,7 +23,7 @@ describe('indent C:', 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('lua/tests/indent/c/' .. file, spec, opts)
+ new_line('tests/indent/c/' .. file, spec, opts)
end)
end
diff --git a/lua/tests/indent/cpp/access.cpp b/tests/indent/cpp/access.cpp
index abdb846ce..abdb846ce 100644
--- a/lua/tests/indent/cpp/access.cpp
+++ b/tests/indent/cpp/access.cpp
diff --git a/lua/tests/indent/cpp/class.cpp b/tests/indent/cpp/class.cpp
index cd8382190..cd8382190 100644
--- a/lua/tests/indent/cpp/class.cpp
+++ b/tests/indent/cpp/class.cpp
diff --git a/lua/tests/indent/cpp/stream.cpp b/tests/indent/cpp/stream.cpp
index a619dfa69..a619dfa69 100644
--- a/lua/tests/indent/cpp/stream.cpp
+++ b/tests/indent/cpp/stream.cpp
diff --git a/tests/indent/cpp_spec.lua b/tests/indent/cpp_spec.lua
new file mode 100644
index 000000000..d3c98401c
--- /dev/null
+++ b/tests/indent/cpp_spec.lua
@@ -0,0 +1,62 @@
+local whole_file = require('nvim-treesitter.test_utils').indent_whole_file
+local new_line = require('nvim-treesitter.test_utils').indent_new_line
+local scan_dir = require('plenary.scandir').scan_dir
+local Path = require('plenary.path')
+
+local opts = {
+ tabstop = 4,
+ shiftwidth = 4,
+ softtabstop = 0,
+ expandtab = true,
+ filetype = 'cpp',
+}
+
+local get_name = function(file)
+ return Path:new(file):make_relative('tests/indent')
+end
+
+describe('indent C++:', function()
+ describe('whole file:', function()
+ local files = scan_dir('tests/indent/c');
+ vim.list_extend(files, scan_dir('tests/indent/cpp'))
+
+ for _, file in ipairs(files) do
+ it(get_name(file), function()
+ whole_file(file, opts)
+ end)
+ end
+ 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]', get_name(file), title), function()
+ new_line(file, spec, opts)
+ end)
+ end
+
+ run('tests/indent/cpp/access.cpp', { on_line = 3, text = 'protected:', indent = 0 })
+ run('tests/indent/cpp/class.cpp', { on_line = 2, text = 'using T = int;', indent = 4 })
+ run('tests/indent/cpp/stream.cpp', { on_line = 5, text = '<< x + 3', indent = 8 })
+
+ -- TODO: find a clean way to import these from c_spec.lua
+ run('tests/indent/c/array.c', { on_line = 2, text = '0,', indent = 4 })
+ run('tests/indent/c/cond.c', { on_line = 3, text = 'x++;', indent = 8 })
+ run('tests/indent/c/cond.c', { on_line = 8, text = 'x++;', indent = 8 })
+ run('tests/indent/c/expr.c', { on_line = 10, text = '2 *', indent = 8 })
+ run('tests/indent/c/func.c', { on_line = 17, text = 'int z,', indent = 4 })
+ run('tests/indent/c/label.c', { on_line = 3, text = 'normal:', indent = 0 })
+ run('tests/indent/c/loop.c', { on_line = 3, text = 'x++;', indent = 8 })
+ run('tests/indent/c/preproc_cond.c', { on_line = 5, text = 'x++;', indent = 4 })
+ run('tests/indent/c/preproc_func.c', { on_line = 3, text = 'x++; \\', indent = 8 })
+ run('tests/indent/c/string.c', { on_line = 1, text = 'brave new \\', indent = 0 })
+ run('tests/indent/c/string.c', { on_line = 4, text = '"brave new "', indent = 4 })
+ run('tests/indent/c/struct.c', { on_line = 4, text = 'int y;', indent = 8 })
+ run('tests/indent/c/switch.c', { on_line = 3, text = 'x++;', indent = 12 })
+ run('tests/indent/c/ternary.c', { on_line = 4, text = ': (x == 0) : 0', indent = 8 })
+ -- the line after inserted one will be left with wrong indent but we only care about the inserted one
+ run('tests/indent/c/no_braces.c', { on_line = 4, text = 'x++;', indent = 8 })
+ run('tests/indent/c/no_braces.c', { on_line = 7, text = 'x++;', indent = 8 })
+ run('tests/indent/c/no_braces.c', { on_line = 10, text = 'x++;', indent = 8 })
+ end)
+end)
diff --git a/lua/tests/indent/lua/comment.lua b/tests/indent/lua/comment.lua
index 9f3624e1e..9f3624e1e 100644
--- a/lua/tests/indent/lua/comment.lua
+++ b/tests/indent/lua/comment.lua
diff --git a/lua/tests/indent/lua/cond.lua b/tests/indent/lua/cond.lua
index dfae37f05..dfae37f05 100644
--- a/lua/tests/indent/lua/cond.lua
+++ b/tests/indent/lua/cond.lua
diff --git a/lua/tests/indent/lua/func.lua b/tests/indent/lua/func.lua
index 1f95ca97a..1f95ca97a 100644
--- a/lua/tests/indent/lua/func.lua
+++ b/tests/indent/lua/func.lua
diff --git a/lua/tests/indent/lua/loop.lua b/tests/indent/lua/loop.lua
index 7f5402d1e..7f5402d1e 100644
--- a/lua/tests/indent/lua/loop.lua
+++ b/tests/indent/lua/loop.lua
diff --git a/lua/tests/indent/lua/string.lua b/tests/indent/lua/string.lua
index adfebf76a..adfebf76a 100644
--- a/lua/tests/indent/lua/string.lua
+++ b/tests/indent/lua/string.lua
diff --git a/lua/tests/indent/lua/table.lua b/tests/indent/lua/table.lua
index d53504b45..d53504b45 100644
--- a/lua/tests/indent/lua/table.lua
+++ b/tests/indent/lua/table.lua
diff --git a/lua/tests/indent/lua_spec.lua b/tests/indent/lua_spec.lua
index 3a2a7cb7b..473f584c4 100644
--- a/lua/tests/indent/lua_spec.lua
+++ b/tests/indent/lua_spec.lua
@@ -11,7 +11,7 @@ local opts = {
describe('indent Lua:', function()
describe('whole file:', function()
- local files = scan_dir('lua/tests/indent/lua');
+ local files = scan_dir('tests/indent/lua');
for _, file in ipairs(files) do
it(vim.fn.fnamemodify(file, ':t'), function()
whole_file(file, opts)
@@ -23,7 +23,7 @@ describe('indent Lua:', 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('lua/tests/indent/lua/' .. file, spec, opts)
+ new_line('tests/indent/lua/' .. file, spec, opts)
end)
end
diff --git a/lua/tests/indent/python/aligned_indent.py b/tests/indent/python/aligned_indent.py
index 2a4b827f4..2a4b827f4 100644
--- a/lua/tests/indent/python/aligned_indent.py
+++ b/tests/indent/python/aligned_indent.py
diff --git a/lua/tests/indent/python/basic_blocks.py b/tests/indent/python/basic_blocks.py
index 4f36359bd..4f36359bd 100644
--- a/lua/tests/indent/python/basic_blocks.py
+++ b/tests/indent/python/basic_blocks.py
diff --git a/lua/tests/indent/python/basic_collections.py b/tests/indent/python/basic_collections.py
index 1582b9059..1582b9059 100644
--- a/lua/tests/indent/python/basic_collections.py
+++ b/tests/indent/python/basic_collections.py
diff --git a/lua/tests/indent/python/branches.py b/tests/indent/python/branches.py
index 7ce106bd7..7ce106bd7 100644
--- a/lua/tests/indent/python/branches.py
+++ b/tests/indent/python/branches.py
diff --git a/lua/tests/indent/python/comprehensions.py b/tests/indent/python/comprehensions.py
index 53c3961e1..53c3961e1 100644
--- a/lua/tests/indent/python/comprehensions.py
+++ b/tests/indent/python/comprehensions.py
diff --git a/lua/tests/indent/python/control_flow.py b/tests/indent/python/control_flow.py
index c8cd2541b..c8cd2541b 100644
--- a/lua/tests/indent/python/control_flow.py
+++ b/tests/indent/python/control_flow.py
diff --git a/lua/tests/indent/python/hanging_indent.py b/tests/indent/python/hanging_indent.py
index 4d46ebed0..4d46ebed0 100644
--- a/lua/tests/indent/python/hanging_indent.py
+++ b/tests/indent/python/hanging_indent.py
diff --git a/lua/tests/indent/python/join_lines.py b/tests/indent/python/join_lines.py
index 491b2cc37..491b2cc37 100644
--- a/lua/tests/indent/python/join_lines.py
+++ b/tests/indent/python/join_lines.py
diff --git a/lua/tests/indent/python/nested_collections.py b/tests/indent/python/nested_collections.py
index 292a65a00..292a65a00 100644
--- a/lua/tests/indent/python/nested_collections.py
+++ b/tests/indent/python/nested_collections.py
diff --git a/lua/tests/indent/python/strings.py b/tests/indent/python/strings.py
index 0eb088fa6..0eb088fa6 100644
--- a/lua/tests/indent/python/strings.py
+++ b/tests/indent/python/strings.py
diff --git a/lua/tests/indent/python_spec.lua b/tests/indent/python_spec.lua
index 2927ad4e5..7a058af55 100644
--- a/lua/tests/indent/python_spec.lua
+++ b/tests/indent/python_spec.lua
@@ -11,7 +11,7 @@ local opts = {
describe('indent Python:', function()
describe('whole file:', function()
- local files = scan_dir('lua/tests/indent/python');
+ local files = scan_dir('tests/indent/python');
for _, file in ipairs(files) do
it(vim.fn.fnamemodify(file, ':t'), function()
whole_file(file, opts)
@@ -23,7 +23,7 @@ describe('indent Python:', 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('lua/tests/indent/python/' .. file, spec, opts)
+ new_line('tests/indent/python/' .. file, spec, opts)
end)
end
diff --git a/lua/tests/indent/rust/array.rs b/tests/indent/rust/array.rs
index 68344e0ee..68344e0ee 100644
--- a/lua/tests/indent/rust/array.rs
+++ b/tests/indent/rust/array.rs
diff --git a/lua/tests/indent/rust/comment.rs b/tests/indent/rust/comment.rs
index 334793dfa..334793dfa 100644
--- a/lua/tests/indent/rust/comment.rs
+++ b/tests/indent/rust/comment.rs
diff --git a/lua/tests/indent/rust/cond.rs b/tests/indent/rust/cond.rs
index eb96a48f7..eb96a48f7 100644
--- a/lua/tests/indent/rust/cond.rs
+++ b/tests/indent/rust/cond.rs
diff --git a/lua/tests/indent/rust/enum.rs b/tests/indent/rust/enum.rs
index 996f07d21..996f07d21 100644
--- a/lua/tests/indent/rust/enum.rs
+++ b/tests/indent/rust/enum.rs
diff --git a/lua/tests/indent/rust/func.rs b/tests/indent/rust/func.rs
index 4c9d40b26..4c9d40b26 100644
--- a/lua/tests/indent/rust/func.rs
+++ b/tests/indent/rust/func.rs
diff --git a/lua/tests/indent/rust/impl.rs b/tests/indent/rust/impl.rs
index 2525c2e5b..2525c2e5b 100644
--- a/lua/tests/indent/rust/impl.rs
+++ b/tests/indent/rust/impl.rs
diff --git a/lua/tests/indent/rust/loop.rs b/tests/indent/rust/loop.rs
index eb845bc0f..eb845bc0f 100644
--- a/lua/tests/indent/rust/loop.rs
+++ b/tests/indent/rust/loop.rs
diff --git a/lua/tests/indent/rust/macro.rs b/tests/indent/rust/macro.rs
index 608e157fc..608e157fc 100644
--- a/lua/tests/indent/rust/macro.rs
+++ b/tests/indent/rust/macro.rs
diff --git a/lua/tests/indent/rust/match.rs b/tests/indent/rust/match.rs
index 438ba6d5f..438ba6d5f 100644
--- a/lua/tests/indent/rust/match.rs
+++ b/tests/indent/rust/match.rs
diff --git a/lua/tests/indent/rust/mod.rs b/tests/indent/rust/mod.rs
index cc7f2c8e6..cc7f2c8e6 100644
--- a/lua/tests/indent/rust/mod.rs
+++ b/tests/indent/rust/mod.rs
diff --git a/lua/tests/indent/rust/string.rs b/tests/indent/rust/string.rs
index 4d60663dd..4d60663dd 100644
--- a/lua/tests/indent/rust/string.rs
+++ b/tests/indent/rust/string.rs
diff --git a/lua/tests/indent/rust/struct.rs b/tests/indent/rust/struct.rs
index f3828977f..f3828977f 100644
--- a/lua/tests/indent/rust/struct.rs
+++ b/tests/indent/rust/struct.rs
diff --git a/lua/tests/indent/rust/trait.rs b/tests/indent/rust/trait.rs
index fb5fc7ea8..fb5fc7ea8 100644
--- a/lua/tests/indent/rust/trait.rs
+++ b/tests/indent/rust/trait.rs
diff --git a/lua/tests/indent/rust/where.rs b/tests/indent/rust/where.rs
index 08c1b196d..08c1b196d 100644
--- a/lua/tests/indent/rust/where.rs
+++ b/tests/indent/rust/where.rs
diff --git a/lua/tests/indent/rust_spec.lua b/tests/indent/rust_spec.lua
index 120b6771b..c3ffe3fdf 100644
--- a/lua/tests/indent/rust_spec.lua
+++ b/tests/indent/rust_spec.lua
@@ -11,7 +11,7 @@ local opts = {
describe('indent Rust:', function()
describe('whole file:', function()
- local files = scan_dir('lua/tests/indent/rust');
+ local files = scan_dir('tests/indent/rust');
for _, file in ipairs(files) do
it(vim.fn.fnamemodify(file, ':t'), function()
whole_file(file, opts)
@@ -23,7 +23,7 @@ describe('indent Rust:', 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('lua/tests/indent/rust/' .. file, spec, opts)
+ new_line('tests/indent/rust/' .. file, spec, opts)
end)
end