view src/testdir/test_autochdir.vim @ 9679:5028439c944d

Added tag v7.4.2115 for changeset 8c9e13109df85b4033c4f02bd5fc362a475b5034
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Jul 2016 18:15:06 +0200
parents 38e2fc4ee4ef
children 03a6aeea2096
line wrap: on
line source

" Test 'autochdir' behavior

if !exists("+autochdir")
  finish
endif

func Test_set_filename()
  call test_autochdir()
  set acd
  new
  w samples/Xtest
  call assert_equal("Xtest", expand('%'))
  call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', ''))
  bwipe!
  set noacd
  call delete('samples/Xtest')
endfunc