From: Bram Moolenaar Date: Mon, 25 Jan 2016 21:44:54 +0000 (+0100) Subject: add missing test file X-Git-Tag: v7.4.1181~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac80999985299dae4a9ef56dbf31fbdb35c04c08;p=vim add missing test file --- diff --git a/src/testdir/test_glob2regpat.vim b/src/testdir/test_glob2regpat.vim new file mode 100644 index 000000000..250ab2746 --- /dev/null +++ b/src/testdir/test_glob2regpat.vim @@ -0,0 +1,10 @@ +" Test glob2regpat() + +func Test_invalid() + call assert_fails('call glob2regpat(1.33)', 'E806:') +endfunc + +func Test_valid() + call assert_equal('^foo\.', glob2regpat('foo.*')) + call assert_equal('\.vim$', glob2regpat('*.vim')) +endfunc