aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2023-10-19 20:09:02 +0600
committerLewis Russell <me@lewisr.dev>2023-10-20 13:35:47 +0100
commit6c87d3e0fbf88ae693be11a3ede3a1ec6ec0e30e (patch)
treebdc2e6f5121d8fba2703ba2281339e38ad5adf00 /test/functional/api/vim_spec.lua
parentf4b896198fdd44f1994397a4e5d6475a2dcec05c (diff)
downloadrneovim-6c87d3e0fbf88ae693be11a3ede3a1ec6ec0e30e.tar.gz
rneovim-6c87d3e0fbf88ae693be11a3ede3a1ec6ec0e30e.tar.bz2
rneovim-6c87d3e0fbf88ae693be11a3ede3a1ec6ec0e30e.zip
refactor(options): `get_option_value_strict()` and `SREQ_*`
`SREQ_*` values are now actual typedef'd enums. `get_option_value_strict()` has also been refactored and split into two functions, `get_option_attrs()` for getting the option attributes, and `get_option_value_strict()` for getting the actual value. Moreover, it now returns an `OptVal`. Other miscellaneous refactors have also been made.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index f28d6ea869..4e259befa8 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -1493,7 +1493,7 @@ describe('API', function()
pcall_err(nvim, 'set_option_value', 'scrolloff', 1, {scope = 'bogus'}))
eq("Invalid 'scope': expected String, got Integer",
pcall_err(nvim, 'get_option_value', 'scrolloff', {scope = 42}))
- eq("Invalid 'value': expected Integer/Boolean/String, got Array",
+ 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",
pcall_err(nvim, 'set_option_value', 'scrolloff', true, {}))