summaryrefslogtreecommitdiff
path: root/src/testdir/test_options.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_options.in')
-rw-r--r--src/testdir/test_options.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_options.in b/src/testdir/test_options.in
new file mode 100644
index 000000000..bf1232a22
--- /dev/null
+++ b/src/testdir/test_options.in
@@ -0,0 +1,17 @@
+Test for ":options".
+
+STARTTEST
+:so small.vim
+:let caught = 'ok'
+:try
+ :options
+:catch
+ :let caught = v:throwpoint . "\n" . v:exception
+:endtry
+:buf 1
+:$put =caught
+:/^result/,$w! test.out
+:qa!
+ENDTEST
+
+result