diff options
author | Daniel Hahler <git@thequod.de> | 2019-06-12 23:04:15 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-06-12 23:08:27 +0200 |
commit | 5db3be092af2853c4f45f4933494bb62249ac994 (patch) | |
tree | bb41ccbd8524c6d360d9db44389f4636c0116aa5 /src | |
parent | 6f27f5ef91b3eeeca9fe58f4033e3d273ccc0889 (diff) | |
download | rneovim-5db3be092af2853c4f45f4933494bb62249ac994.tar.gz rneovim-5db3be092af2853c4f45f4933494bb62249ac994.tar.bz2 rneovim-5db3be092af2853c4f45f4933494bb62249ac994.zip |
tests: align tests in test_options to Vim (moved)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_options.vim | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 78afa929d0..d867964562 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -180,6 +180,15 @@ func Test_thesaurus() call Check_dir_option('thesaurus') endfun +func Test_complete() + " Trailing single backslash used to cause invalid memory access. + set complete=s\ + new + call feedkeys("i\<C-N>\<Esc>", 'xt') + bwipe! + set complete& +endfun + func Test_set_completion() call feedkeys(":set di\<C-A>\<C-B>\"\<CR>", 'tx') call assert_equal('"set dictionary diff diffexpr diffopt digraph directory display', @:) @@ -305,14 +314,23 @@ func Test_set_ttytype() endif endfunc -func Test_complete() - " Trailing single backslash used to cause invalid memory access. - set complete=s\ - new - call feedkeys("i\<C-N>\<Esc>", 'xt') - bwipe! - set complete& -endfun +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 ResetIndentexpr() set indentexpr= @@ -395,24 +413,6 @@ 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 |