diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-22 17:06:33 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-22 17:12:07 -0400 |
commit | fe191d95a2b91035369b434edc3ec6559ba3160d (patch) | |
tree | 24621d9efdccc090988b0821185bbbdc473e1721 /src | |
parent | a52c38d79049000577320e11bd88b82852f2cfe6 (diff) | |
download | rneovim-fe191d95a2b91035369b434edc3ec6559ba3160d.tar.gz rneovim-fe191d95a2b91035369b434edc3ec6559ba3160d.tar.bz2 rneovim-fe191d95a2b91035369b434edc3ec6559ba3160d.zip |
vim-patch:8.0.0368: not all options are tested with a range of values
Problem: Not all options are tested with a range of values.
Solution: Generate a test script from the source code.
https://github.com/vim/vim/commit/2f5463df014a406a2b780068e341ef30a99c9b98
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_options.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 3e0703f845..ea5c39b4f4 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -356,6 +356,24 @@ func Test_shortmess_F() bwipe endfunc +func Test_set_all() + set tw=75 + set iskeyword=a-z,A-Z + set nosplitbelow + let out = execute('set all') + call assert_match('textwidth=75', out) + call assert_match('iskeyword=a-z,A-Z', out) + call assert_match('nosplitbelow', out) + set tw& iskeyword& splitbelow& +endfunc + +func Test_set_values() + " The file is only generated when running "make test" in the src directory. + if filereadable('opt_test.vim') + source opt_test.vim + endif +endfunc + func Test_shortmess_F2() e file1 e file2 |