diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-14 13:50:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-14 13:50:55 +0200 |
commit | df7df59d85e7e56a796912dc865488a75d3f0e53 (patch) | |
tree | d789105edccc4b4bfb6656706516b505447a80e1 /src/testdir/test_cd.vim | |
parent | 984dddbef421eda6b8ad60936f380c5f00aebb96 (diff) | |
download | vim-git-df7df59d85e7e56a796912dc865488a75d3f0e53.tar.gz |
patch 8.2.0976: some 'cpoptions' not testedv8.2.0976
Problem: Some 'cpoptions' not tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #6253)
Diffstat (limited to 'src/testdir/test_cd.vim')
-rw-r--r-- | src/testdir/test_cd.vim | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/testdir/test_cd.vim b/src/testdir/test_cd.vim index 53f9c1081..f43f27c04 100644 --- a/src/testdir/test_cd.vim +++ b/src/testdir/test_cd.vim @@ -58,30 +58,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() |