diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-12-16 11:39:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-16 11:39:30 +0100 |
commit | 7e7da962de404e3a0952bcc0adc6fbe53eda3cfb (patch) | |
tree | 53bb22a303e70b589e6495b42ebae90c128ffe56 /test | |
parent | 7cae94e91e495c6ffbd32c8e9ba7d3c572610409 (diff) | |
parent | 3c2c022e5e299ecac4663c3813e2db5e2b099ffa (diff) | |
download | rneovim-7e7da962de404e3a0952bcc0adc6fbe53eda3cfb.tar.gz rneovim-7e7da962de404e3a0952bcc0adc6fbe53eda3cfb.tar.bz2 rneovim-7e7da962de404e3a0952bcc0adc6fbe53eda3cfb.zip |
Merge pull request #26512 from famiu/refactor/options/type_flags
refactor(options): remove option type macros
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/api/vim_spec.lua | 4 | ||||
-rw-r--r-- | test/old/testdir/test_options.vim | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 3d3b478d66..104ffd7d6c 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1478,9 +1478,9 @@ describe('API', function() pcall_err(nvim, 'get_option_value', 'scrolloff', {scope = 42})) eq("Invalid 'value': expected valid option type, got Array", pcall_err(nvim, 'set_option_value', 'scrolloff', {}, {})) - eq("Invalid value for option 'scrolloff': expected Number, got Boolean true", + eq("Invalid value for option 'scrolloff': expected number, got boolean true", pcall_err(nvim, 'set_option_value', 'scrolloff', true, {})) - eq("Invalid value for option 'scrolloff': expected Number, got String \"wrong\"", + eq("Invalid value for option 'scrolloff': expected number, got string \"wrong\"", pcall_err(nvim, 'set_option_value', 'scrolloff', 'wrong', {})) end) diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim index 2bba86fe99..2aa7d3ab65 100644 --- a/test/old/testdir/test_options.vim +++ b/test/old/testdir/test_options.vim @@ -813,7 +813,7 @@ func Test_set_option_errors() call assert_fails('set winwidth=9 winminwidth=10', 'E592:') set winwidth& winminwidth& call assert_fails("set showbreak=\x01", 'E595:') - call assert_fails('set t_foo=', 'E846:') + " call assert_fails('set t_foo=', 'E846:') call assert_fails('set tabstop??', 'E488:') call assert_fails('set wrapscan!!', 'E488:') call assert_fails('set tabstop&&', 'E488:') @@ -1446,8 +1446,10 @@ endfunc " Test for setting keycodes using set func Test_opt_set_keycode() - call assert_fails('set <t_k1=l', 'E474:') - call assert_fails('set <Home=l', 'E474:') + " call assert_fails('set <t_k1=l', 'E474:') + " call assert_fails('set <Home=l', 'E474:') + call assert_fails('set <t_k1=l', 'E518:') + call assert_fails('set <Home=l', 'E518:') set <t_k9>=abcd " call assert_equal('abcd', &t_k9) set <t_k9>& |