comparison src/testdir/test_function_lists.vim @ 26780:b24b2217ff9e v8.2.3918

patch 8.2.3918: function list test fails Commit: https://github.com/vim/vim/commit/be4e223eadaa765bf2957f196e4d4b6014057bd1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 27 21:42:57 2021 +0000 patch 8.2.3918: function list test fails Problem: Function list test fails. Solution: Adjust the test for the new location of the function list.
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Dec 2021 22:45:04 +0100
parents c7aa7acb23bb
children a7a9e8b9af89
comparison
equal deleted inserted replaced
26779:edb7d53fc7e3 26780:b24b2217ff9e
1 " Test to verify that the three function lists, 1 " Test to verify that the three function lists,
2 " 2 "
3 " global_functions[] in src/evalfunc.c 3 " global_functions[] in src/evalfunc.c
4 " *functions* in runtime/doc/eval.txt 4 " *functions* in runtime/doc/builtin.txt
5 " *function-list* in runtime/doc/usr_41.txt 5 " *function-list* in runtime/doc/usr_41.txt
6 " 6 "
7 " contain the same functions and that the global_functions and ":help 7 " contain the same functions and that the global_functions and ":help
8 " functions" lists are in ASCII order. 8 " functions" lists are in ASCII order.
9 9
53 w! ++ff=unix Xsorted_current_global_functions 53 w! ++ff=unix Xsorted_current_global_functions
54 54
55 " Verify that the ":help functions" list is complete and in ASCII order. 55 " Verify that the ":help functions" list is complete and in ASCII order.
56 56
57 enew! 57 enew!
58 if filereadable('../../doc/eval.txt') 58 if filereadable('../../doc/builtin.txt')
59 " unpacked MS-Windows zip archive 59 " unpacked MS-Windows zip archive
60 read ../../doc/eval.txt 60 read ../../doc/builtin.txt
61 else 61 else
62 read ../../runtime/doc/eval.txt 62 read ../../runtime/doc/builtin.txt
63 endif 63 endif
64 call search('\*functions\*$')
65 call search('^USAGE') 64 call search('^USAGE')
66 1,.d 65 1,.d
67 call search('\*\K\k*()\*$') 66 call search('^==========')
68 .,$d 67 .,$d
69 v/^\S/d 68 v/^\S/d
70 %s/(.*// 69 %s/(.*//
71 let l:lines = getline(1, '$') 70 let l:lines = getline(1, '$')
72 call uniq(l:lines) 71 call uniq(l:lines)