blob: e573419bd0b377cc63efbcf5e6088330363dbe2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
" Test for :cd
func Test_cd_large_path()
" This used to crash with a heap write overflow.
call assert_fails('cd ' . repeat('x', 5000), 'E472:')
endfunc
func Test_cd_up_and_down()
let path = getcwd()
cd ..
exe 'cd ' . path
call assert_equal(path, getcwd())
endfunc
|