view src/testdir/test_findfile.vim @ 12208:48394f51e6af v8.0.0984

patch 8.0.0984: terminal blinking cursor not correct in the GUI commit https://github.com/vim/vim/commit/5830232c021102e47a4e6fc81857604e4a031ddf Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 22 20:33:53 2017 +0200 patch 8.0.0984: terminal blinking cursor not correct in the GUI Problem: Terminal blinking cursor not correct in the GUI. Solution: Set blinkoff correctly. Also make the cursor blink on MS-Windows by default. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Tue, 22 Aug 2017 20:45:04 +0200
parents a479b7064550
children 977a05589b65
line wrap: on
line source

" Test for findfile()
"
func Test_findfile()
  new
  let cwd=getcwd()
  cd ..

  " Tests may be run from a shadow directory, so an extra cd needs to be done to
  " get above src/
  if fnamemodify(getcwd(), ':t') != 'src'
    cd ../.. 
  else 
    cd .. 
  endif
  set ssl

  call assert_equal('src/testdir/test_findfile.vim', findfile('test_findfile.vim','src/test*'))
  exe "cd" cwd
  cd ..
  call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','test*'))
  call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','testdir'))

  exe "cd" cwd
  q!
endfunc