diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-10-30 20:06:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 20:06:57 +0100 |
commit | 6d1a2f2c3c51560555ea6f7867273635d07eb287 (patch) | |
tree | b1a29752324ea1f455a77b5b46e545bc372e5c4b /test/functional/api/vim_spec.lua | |
parent | 788bc12a6f4c5a4627cbc75a2f539bfc622384a2 (diff) | |
parent | e19cc9c9b715d8171f7940632b8855104b5290b6 (diff) | |
download | rneovim-6d1a2f2c3c51560555ea6f7867273635d07eb287.tar.gz rneovim-6d1a2f2c3c51560555ea6f7867273635d07eb287.tar.bz2 rneovim-6d1a2f2c3c51560555ea6f7867273635d07eb287.zip |
Merge pull request #25674 from famiu/refactor/options/unify_string_options
refactor(options): unify `set_option` and `set_string_option`
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 2849fcc6af..c346dfbe6c 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1536,14 +1536,18 @@ describe('API', function() -- Now try with options with a special "local is unset" value (e.g. 'undolevels') nvim('set_option_value', 'undolevels', 1000, {}) - eq(1000, nvim('get_option_value', 'undolevels', {scope = 'local'})) + nvim('set_option_value', 'undolevels', 1200, {scope = 'local'}) + eq(1200, nvim('get_option_value', 'undolevels', {scope = 'local'})) nvim('set_option_value', 'undolevels', NIL, {scope = 'local'}) eq(-123456, nvim('get_option_value', 'undolevels', {scope = 'local'})) + eq(1000, nvim('get_option_value', 'undolevels', {})) nvim('set_option_value', 'autoread', true, {}) - eq(true, nvim('get_option_value', 'autoread', {scope = 'local'})) + nvim('set_option_value', 'autoread', false, {scope = 'local'}) + eq(false, nvim('get_option_value', 'autoread', {scope = 'local'})) nvim('set_option_value', 'autoread', NIL, {scope = 'local'}) eq(NIL, nvim('get_option_value', 'autoread', {scope = 'local'})) + eq(true, nvim('get_option_value', 'autoread', {})) end) it('set window options', function() |