mirror of
https://github.com/neovim/neovim.git
synced 2025-12-21 22:05:39 +00:00
test(lintdoc): check that input list is same length as output list (#28976)
This commit is contained in:
@@ -1434,12 +1434,10 @@ function M.test_gen(help_dir)
|
|||||||
help_dir = vim.fn.expand(help_dir or '$VIMRUNTIME/doc')
|
help_dir = vim.fn.expand(help_dir or '$VIMRUNTIME/doc')
|
||||||
print('doc path = ' .. vim.uv.fs_realpath(help_dir))
|
print('doc path = ' .. vim.uv.fs_realpath(help_dir))
|
||||||
|
|
||||||
local rv = M.gen(
|
-- Because gen() is slow (~30s), this test is limited to a few files.
|
||||||
help_dir,
|
local input = { 'help.txt', 'index.txt', 'nvim.txt' }
|
||||||
tmpdir,
|
local rv = M.gen(help_dir, tmpdir, input)
|
||||||
-- Because gen() is slow (~30s), this test is limited to a few files.
|
eq(#input, #rv.helpfiles)
|
||||||
{ 'help.txt', 'index.txt', 'nvim.txt' }
|
|
||||||
)
|
|
||||||
eq(0, rv.err_count, 'parse errors in :help docs')
|
eq(0, rv.err_count, 'parse errors in :help docs')
|
||||||
eq({}, rv.invalid_links, 'invalid tags in :help docs')
|
eq({}, rv.invalid_links, 'invalid tags in :help docs')
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user