summaryrefslogtreecommitdiff
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
parentd4e8d3e6597578c14dd846762c57308f36ccacb5 (diff)
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 fd1f3579..00000000
--- 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 569a2d5e..c7800d50 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 bf3b906f..8dfb53aa 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 5bb67c2c..5bb67c2c 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 b32de821..b32de821 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 1ecb22d9..1ecb22d9 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 bb6b0dc3..bb6b0dc3 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 cafb1112..cafb1112 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 c188acc0..c188acc0 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 36b40e23..36b40e23 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 facaebb6..facaebb6 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 544ac01d..544ac01d 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 b85440aa..b85440aa 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 f1f38feb..f1f38feb 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 2d5177e0..2d5177e0 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 8cc2b6b2..8cc2b6b2 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 4003bdb1..4003bdb1 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 2e40b382..2e40b382 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 2850023a..98311c77 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 abdb846c..abdb846c 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 cd838219..cd838219 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 a619dfa6..a619dfa6 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 00000000..d3c98401
--- /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 9f3624e1..9f3624e1 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 dfae37f0..dfae37f0 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 1f95ca97..1f95ca97 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 7f5402d1..7f5402d1 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 adfebf76..adfebf76 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 d53504b4..d53504b4 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 3a2a7cb7..473f584c 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 2a4b827f..2a4b827f 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 4f36359b..4f36359b 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 1582b905..1582b905 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 7ce106bd..7ce106bd 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 53c3961e..53c3961e 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 c8cd2541..c8cd2541 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 4d46ebed..4d46ebed 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 491b2cc3..491b2cc3 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 292a65a0..292a65a0 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 0eb088fa..0eb088fa 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 2927ad4e..7a058af5 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 68344e0e..68344e0e 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 334793df..334793df 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 eb96a48f..eb96a48f 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 996f07d2..996f07d2 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 4c9d40b2..4c9d40b2 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 2525c2e5..2525c2e5 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 eb845bc0..eb845bc0 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 608e157f..608e157f 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 438ba6d5..438ba6d5 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 cc7f2c8e..cc7f2c8e 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 4d60663d..4d60663d 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 f3828977..f3828977 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 fb5fc7ea..fb5fc7ea 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 08c1b196..08c1b196 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 120b6771..c3ffe3fd 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