Mercurial > vim
view src/testdir/test_escaped_glob.vim @ 13262:69278c25429d v8.0.1505
patch 8.0.1505: debugger can't break on a condition
commit https://github.com/vim/vim/commit/c6f9f739d32084923c3031cbf6f581f8c8bf7fd2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 11 19:06:26 2018 +0100
patch 8.0.1505: debugger can't break on a condition
Problem: Debugger can't break on a condition. (Charles Campbell)
Solution: Add ":breakadd expr". (Christian Brabandt, closes https://github.com/vim/vim/issues/859)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Feb 2018 19:15:05 +0100 |
parents | f7b2ecaeb79c |
children | b1df7f99efb7 |
line wrap: on
line source
" Test whether glob()/globpath() return correct results with certain escaped " characters. function SetUp() " make sure glob() doesn't use the shell set shell=doesnotexist " consistent sorting of file names set nofileignorecase endfunction function Test_glob() if !has('unix') " This test fails on Windows because of the special characters in the " filenames. Disable the test on non-Unix systems for now. return endif call assert_equal("", glob('Xxx\{')) call assert_equal("", glob('Xxx\$')) w! Xxx{ w! Xxx\$ call assert_equal("Xxx{", glob('Xxx\{')) call assert_equal("Xxx$", glob('Xxx\$')) call delete('Xxx{') call delete('Xxx$') endfunction function Test_globpath() call assert_equal("sautest/autoload/globone.vim\nsautest/autoload/globtwo.vim", \ globpath('sautest/autoload', 'glob*.vim')) call assert_equal(['sautest/autoload/globone.vim', 'sautest/autoload/globtwo.vim'], \ globpath('sautest/autoload', 'glob*.vim', 0, 1)) endfunction