diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-10-22 09:05:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-22 09:05:14 +0800 |
| commit | f663243e95f488b8f4224bdae2697ddac21d0ffb (patch) | |
| tree | 944b6e4c5e0593605060ce96861d5f3ddf94a100 /test/old/testdir/test_options.vim | |
| parent | c8e47f648052f8001d8a493cf7ca6c4867a36bc3 (diff) | |
| download | rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.tar.gz rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.tar.bz2 rneovim-f663243e95f488b8f4224bdae2697ddac21d0ffb.zip | |
vim-patch:9.1.0797: testing of options can be further improved (#30893)
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
https://github.com/vim/vim/commit/6eca04e9f1d446dc509ba51e32da56fa413fe2f0
Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'test/old/testdir/test_options.vim')
| -rw-r--r-- | test/old/testdir/test_options.vim | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim index 4d750a4160..ccc7abe2d8 100644 --- a/test/old/testdir/test_options.vim +++ b/test/old/testdir/test_options.vim @@ -1,8 +1,11 @@ " Test for options +source shared.vim source check.vim source view_util.vim +scriptencoding utf-8 + func Test_whichwrap() set whichwrap=b,s call assert_equal('b,s', &whichwrap) @@ -1024,15 +1027,6 @@ func Test_set_all_one_column() call assert_equal(sort(copy(options)), options) endfunc -func Test_set_values() - " opt_test.vim is generated from ../optiondefs.h using gen_opt_test.vim - if filereadable('opt_test.vim') - source opt_test.vim - else - throw 'Skipped: opt_test.vim does not exist' - endif -endfunc - func Test_renderoptions() throw 'skipped: Nvim does not support renderoptions' " Only do this for Windows Vista and later, fails on Windows XP and earlier. |