comparison src/testdir/test_glob2regpat.vim @ 7767:c9daa07abf34

commit https://github.com/vim/vim/commit/ac80999985299dae4a9ef56dbf31fbdb35c04c08 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 25 22:44:54 2016 +0100 add missing test file
author Christian Brabandt <cb@256bit.org>
date Mon, 25 Jan 2016 23:00:05 +0100
parents
children 6882920b42da
comparison
equal deleted inserted replaced
7766:c131f60919d1 7767:c9daa07abf34
1 " Test glob2regpat()
2
3 func Test_invalid()
4 call assert_fails('call glob2regpat(1.33)', 'E806:')
5 endfunc
6
7 func Test_valid()
8 call assert_equal('^foo\.', glob2regpat('foo.*'))
9 call assert_equal('\.vim$', glob2regpat('*.vim'))
10 endfunc