summaryrefslogtreecommitdiff
path: root/src/testdir/test_glob2regpat.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-25 22:44:54 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-25 22:44:54 +0100
commitac80999985299dae4a9ef56dbf31fbdb35c04c08 (patch)
tree232d13d21e13de1ec35379058198019349f04c8f /src/testdir/test_glob2regpat.vim
parent7465c6375fd60eab603681bcad8a8744ddc31614 (diff)
downloadvim-git-ac80999985299dae4a9ef56dbf31fbdb35c04c08.tar.gz
add missing test file
Diffstat (limited to 'src/testdir/test_glob2regpat.vim')
-rw-r--r--src/testdir/test_glob2regpat.vim10
1 files changed, 10 insertions, 0 deletions
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