Patch 7.4.2185
Problem:    Test glob2regpat does not test much.
Solution:   Add a few more test cases. (Dominique Pelle)
Files:      src/testdir/test_glob2regpat.vim


*** ../vim-7.4.2184/src/testdir/test_glob2regpat.vim    2016-01-25 
22:20:24.056402843 +0100
--- src/testdir/test_glob2regpat.vim    2016-08-08 22:35:40.837855952 +0200
***************
*** 2,10 ****
--- 2,22 ----
  
  func Test_invalid()
    call assert_fails('call glob2regpat(1.33)', 'E806:')
+   call assert_fails('call glob2regpat("}")', 'E219:')
+   call assert_fails('call glob2regpat("{")', 'E220:')
  endfunc
  
  func Test_valid()
    call assert_equal('^foo\.', glob2regpat('foo.*'))
+   call assert_equal('^foo.$', glob2regpat('foo?'))
+   call assert_equal('^foo?$', glob2regpat('foo\?'))
    call assert_equal('\.vim$', glob2regpat('*.vim'))
+   call assert_equal('^[abc]$', glob2regpat('[abc]'))
+   call assert_equal('^foo bar$', glob2regpat('foo\ bar'))
+   call assert_equal('^foo,bar$', glob2regpat('foo,bar'))
+   call assert_equal('^\(foo\|bar\)$', glob2regpat('{foo,bar}'))
+   call assert_equal('^\(foo,bar\|foobar\)$', glob2regpat('{foo\,bar,foobar}'))
+   call assert_equal('^{foo,bar}$', glob2regpat('\{foo,bar\}'))
+   call assert_equal('^\\\(foo\|bar\\\)$', glob2regpat('\\{foo,bar\\}'))
+   call assert_equal('.*', glob2regpat('**'))
  endfunc
*** ../vim-7.4.2184/src/version.c       2016-08-08 22:34:10.294536818 +0200
--- src/version.c       2016-08-08 22:37:00.253255723 +0200
***************
*** 765,766 ****
--- 765,768 ----
  {   /* Add new patch number below this line */
+ /**/
+     2185,
  /**/

-- 
Engineers are always delighted to share wisdom, even in areas in which they
have no experience whatsoever.  Their logic provides them with inherent
insight into any field of expertise.  This can be a problem when dealing with
the illogical people who believe that knowledge can only be derived through
experience.
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui