blob: e573419bd0b377cc63efbcf5e6088330363dbe2c [file] [log] [blame]
Bram Moolenaar15618fa2017-03-19 21:37:13 +01001" Test for :cd
2
3func Test_cd_large_path()
4 " This used to crash with a heap write overflow.
5 call assert_fails('cd ' . repeat('x', 5000), 'E472:')
6endfunc
7
8func Test_cd_up_and_down()
9 let path = getcwd()
10 cd ..
11 exe 'cd ' . path
12 call assert_equal(path, getcwd())
13endfunc