mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
f663243e95
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: vim/vim#15894
6eca04e9f1
Co-authored-by: Milly <milly.ca@gmail.com>
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
|