view src/testdir/test_autochdir.vim @ 11630:7fdc0051855a

Added tag v8.0.0697 for changeset 1a6daa73590a6b2853c5ff81664cd179878d48d9
author Christian Brabandt <cb@256bit.org>
date Fri, 07 Jul 2017 13:45:03 +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