diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-04 19:51:54 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-04 20:54:50 +0800 |
| commit | 2b86ca81b400b1311379f3258cc6c38be94fcf36 (patch) | |
| tree | 9d40995de6dd74217d93475c89348ad9cf789cc8 /src/nvim/testdir/test_cd.vim | |
| parent | 32a2c556ab3697111f01c9ef50447ec5d78070f7 (diff) | |
| download | rneovim-2b86ca81b400b1311379f3258cc6c38be94fcf36.tar.gz rneovim-2b86ca81b400b1311379f3258cc6c38be94fcf36.tar.bz2 rneovim-2b86ca81b400b1311379f3258cc6c38be94fcf36.zip | |
vim-patch:8.2.0976: some 'cpoptions' not tested
Problem: Some 'cpoptions' not tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#6253)
https://github.com/vim/vim/commit/df7df59d85e7e56a796912dc865488a75d3f0e53
Diffstat (limited to 'src/nvim/testdir/test_cd.vim')
| -rw-r--r-- | src/nvim/testdir/test_cd.vim | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/nvim/testdir/test_cd.vim b/src/nvim/testdir/test_cd.vim index d6d44d1901..43c4e09d40 100644 --- a/src/nvim/testdir/test_cd.vim +++ b/src/nvim/testdir/test_cd.vim @@ -68,30 +68,6 @@ func Test_cd_minus() call delete('Xresult') endfunc -func Test_cd_with_cpo_chdir() - e Xfoo - call setline(1, 'foo') - let path = getcwd() - " set cpo+=. - - " :cd should fail when buffer is modified and 'cpo' contains dot. - " call assert_fails('cd ..', 'E747:') - call assert_equal(path, getcwd()) - - " :cd with exclamation mark should succeed. - cd! .. - call assert_notequal(path, getcwd()) - - " :cd should succeed when buffer has been written. - w! - exe 'cd ' .. fnameescape(path) - call assert_equal(path, getcwd()) - - call delete('Xfoo') - set cpo& - bw! -endfunc - " Test for chdir() func Test_chdir_func() let topdir = getcwd() |