# HG changeset patch # User Christian Brabandt # Date 1453759205 -3600 # Node ID c9daa07abf34c53ca927b50150e11df4483b5337 # Parent c131f60919d14789e6032d508bd4f7ab1e085b27 commit https://github.com/vim/vim/commit/ac80999985299dae4a9ef56dbf31fbdb35c04c08 Author: Bram Moolenaar Date: Mon Jan 25 22:44:54 2016 +0100 add missing test file diff --git a/src/testdir/test_glob2regpat.vim b/src/testdir/test_glob2regpat.vim new file mode 100644 --- /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