forked from aniani/vim
Problem: An error in ":options" is not caught by the tests.
Solution: Add a test for ":options". Set $VIMRUNTIME for the tests so that
it uses the current runtime files instead of the installed ones.
18 lines
213 B
Plaintext
18 lines
213 B
Plaintext
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
|