blob: fcc39434fffdce349bcd5923dd7e6f197bd46895 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
-- 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)
|