view src/testdir/test_cd.vim @ 13527:b2b99d01321b v8.0.1637

patch 8.0.1637: no test for term_dumpdiff() options argument commit https://github.com/vim/vim/commit/897e63c4c0623078b5b39e2715b10f456a2453e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 24 17:16:33 2018 +0100 patch 8.0.1637: no test for term_dumpdiff() options argument Problem: No test for term_dumpdiff() options argument. Solution: Add a test.
author Christian Brabandt <cb@256bit.org>
date Sat, 24 Mar 2018 17:30:07 +0100
parents 290f5f6a2bac
children a1d21fc6e457
line wrap: on
line source

" 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