diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-05-25 01:39:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-25 07:39:06 +0800 |
commit | 93c55c238f4c1088da4dc6ec80103eb3ef4085d2 (patch) | |
tree | e5ef66a69d1556336395ee8a6bca00853748168f /scripts/gen_help_html.lua | |
parent | 5d26934c7cda191f0b519c1326fa318b857ffcb8 (diff) | |
download | rneovim-93c55c238f4c1088da4dc6ec80103eb3ef4085d2.tar.gz rneovim-93c55c238f4c1088da4dc6ec80103eb3ef4085d2.tar.bz2 rneovim-93c55c238f4c1088da4dc6ec80103eb3ef4085d2.zip |
test(lintdoc): check that input list is same length as output list (#28976)
Diffstat (limited to 'scripts/gen_help_html.lua')
-rw-r--r-- | scripts/gen_help_html.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/gen_help_html.lua b/scripts/gen_help_html.lua index cdfb85bde6..e238fee5f8 100644 --- a/scripts/gen_help_html.lua +++ b/scripts/gen_help_html.lua @@ -1434,12 +1434,10 @@ function M.test_gen(help_dir) help_dir = vim.fn.expand(help_dir or '$VIMRUNTIME/doc') print('doc path = ' .. vim.uv.fs_realpath(help_dir)) - local rv = M.gen( - help_dir, - tmpdir, - -- Because gen() is slow (~30s), this test is limited to a few files. - { 'help.txt', 'index.txt', 'nvim.txt' } - ) + -- Because gen() is slow (~30s), this test is limited to a few files. + local input = { 'help.txt', 'index.txt', 'nvim.txt' } + local rv = M.gen(help_dir, tmpdir, input) + eq(#input, #rv.helpfiles) eq(0, rv.err_count, 'parse errors in :help docs') eq({}, rv.invalid_links, 'invalid tags in :help docs') end |