aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/options_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/options_spec.lua')
-rw-r--r--test/functional/legacy/options_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/legacy/options_spec.lua b/test/functional/legacy/options_spec.lua
new file mode 100644
index 0000000000..fcc39434ff
--- /dev/null
+++ b/test/functional/legacy/options_spec.lua
@@ -0,0 +1,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)