aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_cd.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-04 21:49:43 +0800
committerGitHub <noreply@github.com>2022-11-04 21:49:43 +0800
commit234b8c5f3d57294dda06dbc6c1760e5983bd2c19 (patch)
tree30ee4255289a1c3be9a7a80ab06242ec91908406 /src/nvim/testdir/test_cd.vim
parent0aba1761714661b8576d4676c61c319e76bfac1b (diff)
parent2aafaa59928e17fd7858a89d203e2b2a07707601 (diff)
downloadrneovim-234b8c5f3d57294dda06dbc6c1760e5983bd2c19.tar.gz
rneovim-234b8c5f3d57294dda06dbc6c1760e5983bd2c19.tar.bz2
rneovim-234b8c5f3d57294dda06dbc6c1760e5983bd2c19.zip
Merge pull request #20934 from zeertzjq/vim-8.2.0968
vim-patch:8.2.{0968,0976,1022,1810,2901}: various tests
Diffstat (limited to 'src/nvim/testdir/test_cd.vim')
-rw-r--r--src/nvim/testdir/test_cd.vim24
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()