mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 19:55:04 -07:00
21 lines
523 B
Lua
21 lines
523 B
Lua
-- Test for ":options".
|
|
|
|
local helpers = require('test.functional.helpers')
|
|
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
|
|
local execute, expect = helpers.execute, helpers.expect
|
|
|
|
describe('options', function()
|
|
setup(clear)
|
|
|
|
it('is working', function()
|
|
insert('result')
|
|
|
|
execute("let caught = 'ok'")
|
|
execute('try', 'options', 'catch', 'let caught = v:throwpoint . "\n" . v:exception', 'endtry')
|
|
execute('buf 1')
|
|
execute('$put =caught')
|
|
|
|
expect("result\nok")
|
|
end)
|
|
end)
|