view src/testdir/test_autochdir.vim @ 10160:32dd27cceadd v7.4.2350

commit https://github.com/vim/vim/commit/cf703fe9d66744ffd7d9c625ee1cbe048ee07740 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 9 14:59:39 2016 +0200 patch 7.4.2350 Problem: Test 86 and 87 fail with some version of Python. Solution: Unify "can't" and "cannot". Unify quotes.
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Sep 2016 15:00:08 +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