summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-07-03 17:14:00 +0200
committerBram Moolenaar <Bram@vim.org>2013-07-03 17:14:00 +0200
commitf4c5fcb3ad0b98d6827d5f95e5c66cdd54e66a02 (patch)
treeb90fb10d1d9e99ac323b2b6469a84ebbf5f98d44 /src/testdir
parent8968a31179c8142cc4ccc2f27cf09e03135c35c7 (diff)
downloadvim-git-f4c5fcb3ad0b98d6827d5f95e5c66cdd54e66a02.tar.gz
updated for version 7.3.1297v7.3.1297
Problem: findfile() directory matching does not work when a star follows text. (Markus Braun) Solution: Make a wildcard work properly. (Christian Brabandt)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test89.in18
-rw-r--r--src/testdir/test89.ok6
2 files changed, 21 insertions, 3 deletions
diff --git a/src/testdir/test89.in b/src/testdir/test89.in
index 8e53c9176..fc3a9a29b 100644
--- a/src/testdir/test89.in
+++ b/src/testdir/test89.in
@@ -1,6 +1,7 @@
-Some tests for setting 'number' and 'relativenumber'
-This is not all that useful now that the options are no longer reset when
-setting the other.
+- Some tests for setting 'number' and 'relativenumber'
+ This is not all that useful now that the options are no longer reset when
+ setting the other.
+- Some tests for findfile() function
STARTTEST
:so small.vim
@@ -49,6 +50,17 @@ STARTTEST
:$put g
:$put h
:"
+:let cwd=getcwd()
+:cd ../..
+:$put =''
+:$put ='Testing findfile'
+:$put =''
+:$put =findfile('test19.in','src/test*')
+:exe "cd" cwd
+:cd ..
+:$put =findfile('test19.in','test*')
+:$put =findfile('test19.in','testdir')
+:exe "cd" cwd
:/^results/,$w! test.out
:q!
ENDTEST
diff --git a/src/testdir/test89.ok b/src/testdir/test89.ok
index 17bb5d764..90034758d 100644
--- a/src/testdir/test89.ok
+++ b/src/testdir/test89.ok
@@ -20,3 +20,9 @@ results:
number
relativenumber
+
+Testing findfile
+
+src/testdir/test19.in
+testdir/test19.in
+testdir/test19.in