Karsten Hopp b23e00
To: vim-dev@vim.org
Karsten Hopp b23e00
Subject: Patch 7.1.180
Karsten Hopp b23e00
Fcc: outbox
Karsten Hopp b23e00
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp b23e00
Mime-Version: 1.0
Karsten Hopp b23e00
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp b23e00
Content-Transfer-Encoding: 8bit
Karsten Hopp b23e00
------------
Karsten Hopp b23e00
Karsten Hopp b23e00
Patch 7.1.180
Karsten Hopp b23e00
Problem:    Regexp patterns not tested sufficiently.
Karsten Hopp b23e00
Solution:   Add more checks to the regexp test.
Karsten Hopp b23e00
Files:	    src/testdir/test64.in, src/testdir/test64.ok
Karsten Hopp b23e00
Karsten Hopp b23e00
Karsten Hopp b23e00
*** ../vim-7.1.179/src/testdir/test64.in	Tue Sep 25 17:54:41 2007
Karsten Hopp b23e00
--- src/testdir/test64.in	Mon Dec 31 14:20:23 2007
Karsten Hopp b23e00
***************
Karsten Hopp b23e00
*** 14,23 ****
Karsten Hopp b23e00
--- 14,136 ----
Karsten Hopp b23e00
  :"    etc.
Karsten Hopp b23e00
  :"  When there is no match use only the first two items.
Karsten Hopp b23e00
  :let tl = []
Karsten Hopp b23e00
+ :call add(tl, ['ab', 'aab', 'ab'])
Karsten Hopp b23e00
  :call add(tl, ['b', 'abcdef', 'b'])
Karsten Hopp b23e00
  :call add(tl, ['bc*', 'abccccdef', 'bcccc'])
Karsten Hopp b23e00
  :call add(tl, ['bc\{-}', 'abccccdef', 'b'])
Karsten Hopp b23e00
  :call add(tl, ['bc\{-}\(d\)', 'abccccdef', 'bccccd', 'd'])
Karsten Hopp b23e00
+ :call add(tl, ['bc*', 'abbdef', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['c*', 'ccc', 'ccc'])
Karsten Hopp b23e00
+ :call add(tl, ['bc*', 'abdef', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['c*', 'abdef', ''])
Karsten Hopp b23e00
+ :call add(tl, ['bc\+', 'abccccdef', 'bcccc'])
Karsten Hopp b23e00
+ :call add(tl, ['bc\+', 'abdef']) "no match
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :"operator \|
Karsten Hopp b23e00
+ :call add(tl, ['a\|ab', 'cabd', 'a']) "alternation is ordered
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['c\?', 'ccb', 'c'])
Karsten Hopp b23e00
+ :call add(tl, ['bc\?', 'abd', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['bc\?', 'abccd', 'bc'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\va{1}', 'ab', 'a'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\va{2}', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{2}', 'caad', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{2}', 'aba'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{2}', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{2}', 'abaa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{2}', 'aaa', 'aa'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\vb{1}', 'abca', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['\vba{2}', 'abaa', 'baa'])
Karsten Hopp b23e00
+ :call add(tl, ['\vba{3}', 'aabaac'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){1}', 'ab', 'ab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){1}', 'dabc', 'ab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){1}', 'acb'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){0,2}', 'acb', "", ""])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){0,2}', 'ab', 'ab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){1,2}', 'ab', 'ab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){1,2}', 'ababc', 'abab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){2,4}', 'ababcab', 'abab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){2,4}', 'abcababa', 'abab', 'ab'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){2}', 'abab', 'abab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){2}', 'cdababe', 'abab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){2}', 'abac'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab){2}', 'abacabab', 'abab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v((ab){2}){2}', 'abababab', 'abababab', 'abab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v((ab){2}){2}', 'abacabababab', 'abababab', 'abab', 'ab'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1}){1}', 'a', 'a', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2}){1}', 'aa', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2}){1}', 'aaac', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2}){1}', 'daaac', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1}){2}', 'daaac', 'aa', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1}){2}', 'aaa', 'aa', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2})+', 'adaac', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2})+', 'aa', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2}){1}', 'aa', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1}){2}', 'aa', 'aa', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1}){1}', 'a', 'a', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2}){2}', 'aaaa', 'aaaa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2}){2}', 'aaabaaaa', 'aaaa', 'aa'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v(a+){2}', 'dadaac', 'aa', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{3}){2}', 'aaaaaaa', 'aaaaaa', 'aaa'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1,2}){2}', 'daaac', 'aaa', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1,3}){2}', 'daaaac', 'aaaa', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1,3}){2}', 'daaaaac', 'aaaaa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1,3}){3}', 'daac'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{1,2}){2}', 'dac'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a+)+', 'daac', 'aa', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a+)+', 'aaa', 'aaa', 'aaa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a+){1,2}', 'aaa', 'aaa', 'aaa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a+)(a+)', 'aaa', 'aaa', 'aa', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{3})+', 'daaaac', 'aaa', 'aaa'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a|b|c)+', 'aacb', 'aacb', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a|b|c){2}', 'abcb', 'ab', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(abc){2}', 'abcabd', ])
Karsten Hopp b23e00
+ :call add(tl, ['\v(abc){2}', 'abdabcabc','abcabc', 'abc'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['a*', 'cc', ''])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a*)+', 'cc', ''])
Karsten Hopp b23e00
+ :call add(tl, ['\v((ab)+)+', 'ab', 'ab', 'ab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(((ab)+)+)+', 'ab', 'ab', 'ab', 'ab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(((ab)+)+)+', 'dababc', 'abab', 'abab', 'abab', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{0,2})+', 'cc', ''])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a*)+', '', ''])
Karsten Hopp b23e00
+ :call add(tl, ['\v((a*)+)+', '', ''])
Karsten Hopp b23e00
+ :call add(tl, ['\v((ab)*)+', '', ''])
Karsten Hopp b23e00
+ :call add(tl, ['\va{1,3}', 'aab', 'aa'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{2,3}', 'abaa', 'aa'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v((ab)+|c*)+', 'abcccaba', 'abcccab', '', 'ab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a{2})|(b{3})', 'bbabbbb', 'bbb', '', 'bbb'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{2}|b{2}', 'abab'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a)+|(c)+', 'bbacbaacbbb', 'a', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\vab{2,3}c', 'aabbccccccccccccc', 'abbc'])
Karsten Hopp b23e00
+ :call add(tl, ['\vab{2,3}c', 'aabbbccccccccccccc', 'abbbc'])
Karsten Hopp b23e00
+ :call add(tl, ['\vab{2,3}cd{2,3}e', 'aabbbcddee', 'abbbcdde'])
Karsten Hopp b23e00
+ :call add(tl, ['\va(bc){2}d', 'aabcbfbc' ])
Karsten Hopp b23e00
+ :call add(tl, ['\va*a{2}', 'a', ])
Karsten Hopp b23e00
+ :call add(tl, ['\va*a{2}', 'aa', 'aa' ])
Karsten Hopp b23e00
+ :call add(tl, ['\va*a{2}', 'aaa', 'aaa' ])
Karsten Hopp b23e00
+ :call add(tl, ['\va*a{2}', 'bbbabcc', ])
Karsten Hopp b23e00
+ :call add(tl, ['\va*b*|a*c*', 'a', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\va{1}b{1}|a{1}b{1}', ''])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :"submatches
Karsten Hopp b23e00
+ :call add(tl, ['\v(a)', 'ab', 'a', 'a'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a)(b)', 'ab', 'ab', 'a', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(ab)(b)(c)', 'abbc', 'abbc', 'ab', 'b', 'c'])
Karsten Hopp b23e00
+ :call add(tl, ['\v((a)(b))', 'ab', 'ab', 'ab', 'a', 'b'])
Karsten Hopp b23e00
+ :call add(tl, ['\v(a)|(b)', 'ab', 'a', 'a'])
Karsten Hopp b23e00
+ :"
Karsten Hopp b23e00
+ :call add(tl, ['\v(a*)+', 'aaaa', 'aaaa', ''])
Karsten Hopp b23e00
  :call add(tl, ['x', 'abcdef'])
Karsten Hopp b23e00
  :"
Karsten Hopp b23e00
  :for t in tl
Karsten Hopp b23e00
*** ../vim-7.1.179/src/testdir/test64.ok	Tue Aug 14 17:28:14 2007
Karsten Hopp b23e00
--- src/testdir/test64.ok	Mon Dec 31 14:20:26 2007
Karsten Hopp b23e00
***************
Karsten Hopp b23e00
*** 4,6 ****
Karsten Hopp b23e00
--- 4,102 ----
Karsten Hopp b23e00
  OK
Karsten Hopp b23e00
  OK
Karsten Hopp b23e00
  OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
+ OK
Karsten Hopp b23e00
*** ../vim-7.1.179/src/version.c	Tue Jan  1 16:25:33 2008
Karsten Hopp b23e00
--- src/version.c	Tue Jan  1 17:34:32 2008
Karsten Hopp b23e00
***************
Karsten Hopp b23e00
*** 668,669 ****
Karsten Hopp b23e00
--- 668,671 ----
Karsten Hopp b23e00
  {   /* Add new patch number below this line */
Karsten Hopp b23e00
+ /**/
Karsten Hopp b23e00
+     180,
Karsten Hopp b23e00
  /**/
Karsten Hopp b23e00
Karsten Hopp b23e00
-- 
Karsten Hopp b23e00
CONCORDE: Message for you, sir.
Karsten Hopp b23e00
   He falls forward revealing the arrow with the note.
Karsten Hopp b23e00
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp b23e00
Karsten Hopp b23e00
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp b23e00
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp b23e00
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp b23e00
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///