forked from aniani/vim
Problem: testing of options can be further improved
Solution: split the generated option test into test_options_all.vim,
add more test cases, save and restore values, fix use-after-free
closes: #15894
Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 lines
309 B
VimL
14 lines
309 B
VimL
" Test for options
|
|
|
|
" opt_test.vim is generated from src/optiondefs.h and runtime/doc/options.txt
|
|
" using gen_opt_test.vim
|
|
if filereadable('opt_test.vim')
|
|
source opt_test.vim
|
|
else
|
|
func Test_set_values()
|
|
throw 'Skipped: opt_test.vim does not exist'
|
|
endfunc
|
|
endif
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|