Karsten Hopp 3ce479
To: vim_dev@googlegroups.com
Karsten Hopp 3ce479
Subject: Patch 7.3.1020
Karsten Hopp 3ce479
Fcc: outbox
Karsten Hopp 3ce479
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 3ce479
Mime-Version: 1.0
Karsten Hopp 3ce479
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 3ce479
Content-Transfer-Encoding: 8bit
Karsten Hopp 3ce479
------------
Karsten Hopp 3ce479
Karsten Hopp 3ce479
Patch 7.3.1020
Karsten Hopp 3ce479
Problem:    Not all patterns are tested with auto / old / new engine.
Karsten Hopp 3ce479
Solution:   Test patterns with three values of 'regexpengine'.
Karsten Hopp 3ce479
Files:	    src/testdir/test64.in, src/testdir/test64.ok,
Karsten Hopp 3ce479
	    src/testdir/test95.in, src/testdir/test95.ok
Karsten Hopp 3ce479
Karsten Hopp 3ce479
Karsten Hopp 3ce479
*** ../vim-7.3.1019/src/testdir/test64.in	2013-05-25 20:19:45.000000000 +0200
Karsten Hopp 3ce479
--- src/testdir/test64.in	2013-05-25 23:11:58.000000000 +0200
Karsten Hopp 3ce479
***************
Karsten Hopp 3ce479
*** 20,347 ****
Karsten Hopp 3ce479
  :"""" Previously written tests """"""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  :""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
! :call add(tl, ['ab', 'aab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['b', 'abcdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['bc*', 'abccccdef', 'bcccc'])
Karsten Hopp 3ce479
! :call add(tl, ['bc\{-}', 'abccccdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['bc\{-}\(d\)', 'abccccdef', 'bccccd', 'd'])
Karsten Hopp 3ce479
! :call add(tl, ['bc*', 'abbdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['c*', 'ccc', 'ccc'])
Karsten Hopp 3ce479
! :call add(tl, ['bc*', 'abdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['c*', 'abdef', ''])
Karsten Hopp 3ce479
! :call add(tl, ['bc\+', 'abccccdef', 'bcccc'])
Karsten Hopp 3ce479
! :call add(tl, ['bc\+', 'abdef']) "no match
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :"operator \|
Karsten Hopp 3ce479
! :call add(tl, ['a\|ab', 'cabd', 'a']) "alternation is ordered
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
! :call add(tl, ['c\?', 'ccb', 'c'])
Karsten Hopp 3ce479
! :call add(tl, ['bc\?', 'abd', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['bc\?', 'abccd', 'bc'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\va{1}', 'ab', 'a'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\va{2}', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{2}', 'caad', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{2}', 'aba'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{2}', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{2}', 'abaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{2}', 'aaa', 'aa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\vb{1}', 'abca', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['\vba{2}', 'abaa', 'baa'])
Karsten Hopp 3ce479
! :call add(tl, ['\vba{3}', 'aabaac'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){1}', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){1}', 'dabc', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){1}', 'acb'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){0,2}', 'acb', "", ""])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){0,2}', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){1,2}', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){1,2}', 'ababc', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){2,4}', 'ababcab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){2,4}', 'abcababa', 'abab', 'ab'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){2}', 'abab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){2}', 'cdababe', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){2}', 'abac'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab){2}', 'abacabab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v((ab){2}){2}', 'abababab', 'abababab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v((ab){2}){2}', 'abacabababab', 'abababab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1}){1}', 'a', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2}){1}', 'aa', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2}){1}', 'aaac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2}){1}', 'daaac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1}){2}', 'daaac', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1}){2}', 'aaa', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2})+', 'adaac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2})+', 'aa', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2}){1}', 'aa', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1}){2}', 'aa', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1}){1}', 'a', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2}){2}', 'aaaa', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2}){2}', 'aaabaaaa', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\v(a+){2}', 'dadaac', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{3}){2}', 'aaaaaaa', 'aaaaaa', 'aaa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1,2}){2}', 'daaac', 'aaa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1,3}){2}', 'daaaac', 'aaaa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1,3}){2}', 'daaaaac', 'aaaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1,3}){3}', 'daac'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1,2}){2}', 'dac'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a+)+', 'daac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a+)+', 'aaa', 'aaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a+){1,2}', 'aaa', 'aaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a+)(a+)', 'aaa', 'aaa', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{3})+', 'daaaac', 'aaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a|b|c)+', 'aacb', 'aacb', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a|b|c){2}', 'abcb', 'ab', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(abc){2}', 'abcabd', ])
Karsten Hopp 3ce479
! :call add(tl, ['\v(abc){2}', 'abdabcabc','abcabc', 'abc'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['a*', 'cc', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a*)+', 'cc', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v((ab)+)+', 'ab', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(((ab)+)+)+', 'ab', 'ab', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(((ab)+)+)+', 'dababc', 'abab', 'abab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{0,2})+', 'cc', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a*)+', '', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v((a*)+)+', '', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v((ab)*)+', '', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\va{1,3}', 'aab', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{2,3}', 'abaa', 'aa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, ['\v((ab)+|c*)+', 'abcccaba', 'abcccab', '', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{2})|(b{3})', 'bbabbbb', 'bbb', '', 'bbb'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{2}|b{2}', 'abab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a)+|(c)+', 'bbacbaacbbb', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\vab{2,3}c', 'aabbccccccccccccc', 'abbc'])
Karsten Hopp 3ce479
! :call add(tl, ['\vab{2,3}c', 'aabbbccccccccccccc', 'abbbc'])
Karsten Hopp 3ce479
! :call add(tl, ['\vab{2,3}cd{2,3}e', 'aabbbcddee', 'abbbcdde'])
Karsten Hopp 3ce479
! :call add(tl, ['\va(bc){2}d', 'aabcbfbc' ])
Karsten Hopp 3ce479
! :call add(tl, ['\va*a{2}', 'a', ])
Karsten Hopp 3ce479
! :call add(tl, ['\va*a{2}', 'aa', 'aa' ])
Karsten Hopp 3ce479
! :call add(tl, ['\va*a{2}', 'aaa', 'aaa' ])
Karsten Hopp 3ce479
! :call add(tl, ['\va*a{2}', 'bbbabcc', ])
Karsten Hopp 3ce479
! :call add(tl, ['\va*b*|a*c*', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\va{1}b{1}|a{1}b{1}', ''])
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :"submatches
Karsten Hopp 3ce479
! :call add(tl, ['\v(a)', 'ab', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a)(b)', 'ab', 'ab', 'a', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(ab)(b)(c)', 'abbc', 'abbc', 'ab', 'b', 'c'])
Karsten Hopp 3ce479
! :call add(tl, ['\v((a)(b))', 'ab', 'ab', 'ab', 'a', 'b'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a)|(b)', 'ab', 'a', 'a'])
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
! :call add(tl, ['\v(a*)+', 'aaaa', 'aaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, ['x', 'abcdef'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  :""""" Simple tests """""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  :""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Search single groups
Karsten Hopp 3ce479
! :call add(tl, ['ab', 'aab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['ab', 'baced'])
Karsten Hopp 3ce479
! :call add(tl, ['ab', '                    ab           ', 'ab'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Search multi-modifiers
Karsten Hopp 3ce479
! :call add(tl, ['x*', 'xcd', 'x'])
Karsten Hopp 3ce479
! :call add(tl, ['x*', 'xxxxxxxxxxxxxxxxsofijiojgf', 'xxxxxxxxxxxxxxxx'])
Karsten Hopp 3ce479
! :call add(tl, ['x*', 'abcdoij', ''])                    " empty match is good
Karsten Hopp 3ce479
! :call add(tl, ['x\+', 'abcdoin'])                       " no match here
Karsten Hopp 3ce479
! :call add(tl, ['x\+', 'abcdeoijdfxxiuhfij', 'xx'])
Karsten Hopp 3ce479
! :call add(tl, ['x\+', 'xxxxx', 'xxxxx'])
Karsten Hopp 3ce479
! :call add(tl, ['x\+', 'abc x siufhiush xxxxxxxxx', 'x'])
Karsten Hopp 3ce479
! :call add(tl, ['x\=', 'x sdfoij', 'x'])
Karsten Hopp 3ce479
! :call add(tl, ['x\=', 'abc sfoij', '']) " empty match is good
Karsten Hopp 3ce479
! :call add(tl, ['x\=', 'xxxxxxxxx c', 'x'])
Karsten Hopp 3ce479
! :call add(tl, ['x\?', 'x sdfoij', 'x'])
Karsten Hopp 3ce479
! :call add(tl, ['x\?', 'abc sfoij', ''])                 " empty match is good
Karsten Hopp 3ce479
! :call add(tl, ['x\?', 'xxxxxxxxxx c', 'x'])
Karsten Hopp 3ce479
! 
Karsten Hopp 3ce479
! :call add(tl, ['a\{0,0}', 'abcdfdoij', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{0,1}', 'asiubid axxxaaa', 'a'])      " same thing as 'a?'
Karsten Hopp 3ce479
! :call add(tl, ['a\{1,0}', 'asiubid axxxaaa', 'a'])      " same thing as 'a\{0,1}'
Karsten Hopp 3ce479
! :call add(tl, ['a\{3,6}', 'aa siofuh'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{3,6}', 'aaaaa asfoij afaa', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{3,6}', 'aaaaaaaa', 'aaaaaa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{0}', 'asoiuj', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{2}', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{2}', 'iuash fiusahfliusah fiushfilushfi uhsaifuh askfj nasfvius afg aaaa sfiuhuhiushf', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{2}', 'abcdefghijklmnopqrestuvwxyz1234567890'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{0,}', 'oij sdigfusnf', ''])          " same thing as 'a*'
Karsten Hopp 3ce479
! :call add(tl, ['a\{0,}', 'aaaaa aa', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{2,}', 'sdfiougjdsafg'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{2,}', 'aaaaasfoij ', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{,5}', 'abcd', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{,5}', 'aaaaaaaaaa', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{}', 'bbbcddiuhfcd', ''])                 " same thing as 'a*'
Karsten Hopp 3ce479
! :call add(tl, ['a\{}', 'aaaaioudfh coisf jda', 'aaaa'])
Karsten Hopp 3ce479
! 
Karsten Hopp 3ce479
! :call add(tl, ['a\{-0,0}', 'abcdfdoij', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-0,1}', 'asiubid axxxaaa', ''])      " anti-greedy version of 'a?'
Karsten Hopp 3ce479
! :call add(tl, ['a\{-3,6}', 'aa siofuh'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-3,6}', 'aaaaa asfoij afaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-3,6}', 'aaaaaaaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-0}', 'asoiuj', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-2}', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-2}', 'abcdefghijklmnopqrestuvwxyz1234567890'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-0,}', 'oij sdigfusnf', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-0,}', 'aaaaa aa', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-2,}', 'sdfiougjdsafg'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-2,}', 'aaaaasfoij ', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-,5}', 'abcd', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-,5}', 'aaaaaaaaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, ['a\{-}', 'bbbcddiuhfcd', ''])            " anti-greedy version of 'a*'
Karsten Hopp 3ce479
! :call add(tl, ['a\{-}', 'aaaaioudfh coisf jda', ''])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test groups of characters and submatches
Karsten Hopp 3ce479
! :call add(tl, ['\(abc\)*', 'abcabcabc', 'abcabcabc', 'abc'])
Karsten Hopp 3ce479
! :call add(tl, ['\(ab\)\+', 'abababaaaaa', 'ababab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\(abaaaaa\)*cd', 'cd', 'cd', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\(test1\)\? \(test2\)\?', 'test1 test3', 'test1 ', 'test1', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\(test1\)\= \(test2\) \(test4443\)\=', ' test2 test4443 yupiiiiiiiiiii', ' test2 test4443', '', 'test2', 'test4443'])
Karsten Hopp 3ce479
! :call add(tl, ['\(\(sub1\) hello \(sub 2\)\)', 'asterix sub1 hello sub 2 obelix', 'sub1 hello sub 2', 'sub1 hello sub 2', 'sub1', 'sub 2'])
Karsten Hopp 3ce479
! :call add(tl, ['\(\(\(yyxxzz\)\)\)', 'abcdddsfiusfyyzzxxyyxxzz', 'yyxxzz', 'yyxxzz', 'yyxxzz', 'yyxxzz'])
Karsten Hopp 3ce479
! :call add(tl, ['\v((ab)+|c+)+', 'abcccaba', 'abcccab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v((ab)|c*)+', 'abcccaba', 'abcccab', '', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a(c*)+b)+', 'acbababaaa', 'acbabab', 'ab', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a|b*)+', 'aaaa', 'aaaa', ''])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test greedy-ness and lazy-ness
Karsten Hopp 3ce479
! :call add(tl, ['a\{-2,7}','aaaaaaaaaaaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, ['a\{2,7}','aaaaaaaaaaaaaaaaaaaa', 'aaaaaaa'])
Karsten Hopp 3ce479
! :call add(tl, ['\vx(.{-,8})yz(.*)','xayxayzxayzxayz','xayxayzxayzxayz','ayxa','xayzxayz'])
Karsten Hopp 3ce479
! :call add(tl, ['\vx(.*)yz(.*)','xayxayzxayzxayz','xayxayzxayzxayz', 'ayxayzxayzxa',''])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{1,2}){-2,3}','aaaaaaa','aaaa','aa'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a{-1,3})+','aa','aa','a'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test Character classes
Karsten Hopp 3ce479
! :call add(tl, ['\d\+e\d\d','test 10e23 fd','10e23'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test collections and character range []
Karsten Hopp 3ce479
! :call add(tl, ['\v[a]', 'abcd', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['a[bcd]', 'abcd', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['a[b-d]', 'acbd', 'ac'])
Karsten Hopp 3ce479
! :call add(tl, ['[a-d][e-f][x-x]d', 'cexdxx', 'cexd'])
Karsten Hopp 3ce479
! :call add(tl, ['\v[[:alpha:]]+', 'abcdefghijklmnopqrstuvwxyz6','abcdefghijklmnopqrstuvwxyz'])
Karsten Hopp 3ce479
! :call add(tl, ['[[:alpha:]\+]', '6x8','x'])
Karsten Hopp 3ce479
! :call add(tl, ['[^abc]\+','abcabcabc'])
Karsten Hopp 3ce479
! :call add(tl, ['[^abc]','defghiasijvoinasoiunbvb','d'])
Karsten Hopp 3ce479
! :call add(tl, ['[^abc]\+','ddddddda','ddddddd'])
Karsten Hopp 3ce479
! :call add(tl, ['[^a-d]\+','aaaAAAZIHFNCddd','AAAZIHFNC'])
Karsten Hopp 3ce479
! :call add(tl, ['[a-f]*','iiiiiiii',''])
Karsten Hopp 3ce479
! :call add(tl, ['[a-f]*','abcdefgh','abcdef'])
Karsten Hopp 3ce479
! :call add(tl, ['[^a-f]\+','abcdefgh','gh'])
Karsten Hopp 3ce479
! :call add(tl, ['[a-c]\{-3,6}','abcabc','abc'])
Karsten Hopp 3ce479
! :call add(tl, ['[^[:alpha:]]\+','abcccadfoij7787ysf287yrnccdu','7787'])
Karsten Hopp 3ce479
! :call add(tl, ['[-a]', '-', '-'])
Karsten Hopp 3ce479
! :call add(tl, ['[a-]', '-', '-'])
Karsten Hopp 3ce479
! :call add(tl, ['[-./[:alnum:]_~]\+', 'log13.file', 'log13.file'])		" filename regexp
Karsten Hopp 3ce479
! :call add(tl, ['[\]\^\-\\]\+', '\^\\\-\---^', '\^\\\-\---^'])			" special chars
Karsten Hopp 3ce479
! :call add(tl, ['[[.a.]]\+', 'aa', 'aa'])								" collation elem
Karsten Hopp 3ce479
! :call add(tl, ['abc[0-9]*ddd', 'siuhabc ii'])							" middle of regexp
Karsten Hopp 3ce479
! :call add(tl, ['abc[0-9]*ddd', 'adf abc44482ddd oijs', 'abc44482ddd'])
Karsten Hopp 3ce479
! :call add(tl, ['\_[0-9]\+', 'asfi9888u', '9888'])
Karsten Hopp 3ce479
! :call add(tl, ['[0-9\n]\+', 'asfi9888u', '9888'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test recognition of some character classes
Karsten Hopp 3ce479
! :call add(tl, ['[0-9]', '8', '8'])
Karsten Hopp 3ce479
! :call add(tl, ['[^0-9]', '8'])
Karsten Hopp 3ce479
! :call add(tl, ['[0-9a-fA-F]*', '0a7', '0a7'])
Karsten Hopp 3ce479
! :call add(tl, ['[^0-9A-Fa-f]\+', '0a7'])
Karsten Hopp 3ce479
! :call add(tl, ['[a-z_A-Z0-9]\+', 'aso_sfoij', 'aso_sfoij'])
Karsten Hopp 3ce479
! :call add(tl, ['[a-z]', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['[a-zA-Z]', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['[A-Z]', 'a'])
Karsten Hopp 3ce479
! :call add(tl, ['\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Tests for \z features
Karsten Hopp 3ce479
! :call add(tl, ['xx \ze test', 'xx '])					" must match after \ze
Karsten Hopp 3ce479
! :call add(tl, ['abc\zeend', 'oij abcend', 'abc'])
Karsten Hopp 3ce479
! :call add(tl, ['abc\zsdd', 'ddabcddxyzt', 'dd'])
Karsten Hopp 3ce479
! :call add(tl, ['aa \zsax', ' ax'])						" must match before \zs
Karsten Hopp 3ce479
! :call add(tl, ['abc \zsmatch\ze abc', 'abc abc abc match abc abc', 'match'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a \zsif .*){2}', 'a if then a if last', 'if last', 'a if last'])
Karsten Hopp 3ce479
! :call add(tl, ['\>\zs.', 'aword. ', '.'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Tests for \@ features
Karsten Hopp 3ce479
! :call add(tl, ['abc\@=', 'abc', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['abc\@=cd', 'abcd', 'abcd'])
Karsten Hopp 3ce479
! :call add(tl, ['abc\@=', 'ababc', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['abcd\@=e', 'abcd'])                     " will never match, no matter the input text
Karsten Hopp 3ce479
! :call add(tl, ['abcd\@=e', 'any text in here ... '])    " will never match
Karsten Hopp 3ce479
! :call add(tl, ['\v(abc)@=..', 'xabcd', 'ab', 'abc'])
Karsten Hopp 3ce479
! :call add(tl, ['\(.*John\)\@=.*Bob', 'here is John, and here is B'])	" no match
Karsten Hopp 3ce479
! :call add(tl, ['\(John.*\)\@=.*Bob', 'John is Bobs friend', 'John is Bob', 'John is Bobs friend'])
Karsten Hopp 3ce479
! :call add(tl, ['.*John\&.*Bob', 'here is John, and here is B'])	" no match
Karsten Hopp 3ce479
! :call add(tl, ['.*John\&.*Bob', 'John is Bobs friend', 'John is Bob'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(test1)@=.*yep', 'this is a test1, yep it is', 'test1, yep', 'test1'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Combining different tests and features
Karsten Hopp 3ce479
! :call add(tl, ['[[:alpha:]]\{-2,6}', '787abcdiuhsasiuhb4', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, ['', 'abcd', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v(())', 'any possible text', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v%(ab(xyz)c)', '   abxyzc ', 'abxyzc', 'xyz'])
Karsten Hopp 3ce479
! :call add(tl, ['\v(test|)empty', 'tesempty', 'empty', ''])
Karsten Hopp 3ce479
! :call add(tl, ['\v(a|aa)(a|aa)', 'aaa', 'aa', 'a', 'a'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" \%u and friends
Karsten Hopp 3ce479
! :call add(tl, ['\%d32', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, ['\%o40', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, ['\%x20', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, ['\%u0020', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, ['\%U00000020', 'yes no', ' '])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Alternatives, must use first longest match
Karsten Hopp 3ce479
! :call add(tl, ['goo\|go', 'google', 'goo'])
Karsten Hopp 3ce479
! :call add(tl, ['\
Karsten Hopp 3ce479
! :call add(tl, ['\
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Run the tests
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :for t in tl
Karsten Hopp 3ce479
! :  let l = matchlist(t[1], t[0])
Karsten Hopp 3ce479
  :" check the match itself
Karsten Hopp 3ce479
! :  if len(l) == 0 && len(t) > 2
Karsten Hopp 3ce479
! :    $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", did not match, expected: \"' . t[2] . '\"'
Karsten Hopp 3ce479
! :  elseif len(l) > 0 && len(t) == 2
Karsten Hopp 3ce479
! :    $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected no match'
Karsten Hopp 3ce479
! :  elseif len(t) > 2 && l[0] != t[2]
Karsten Hopp 3ce479
! :    $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected: \"' . t[2] . '\"'
Karsten Hopp 3ce479
! :  else
Karsten Hopp 3ce479
! :    $put ='OK - ' . t[0]
Karsten Hopp 3ce479
! :  endif
Karsten Hopp 3ce479
! :  if len(l) > 0
Karsten Hopp 3ce479
  :"   check all the nine submatches
Karsten Hopp 3ce479
! :    for i in range(1, 9)
Karsten Hopp 3ce479
! :      if len(t) <= i + 2
Karsten Hopp 3ce479
! :        let e = ''
Karsten Hopp 3ce479
! :      else
Karsten Hopp 3ce479
! :        let e = t[i + 2]
Karsten Hopp 3ce479
! :      endif
Karsten Hopp 3ce479
! :      if l[i] != e
Karsten Hopp 3ce479
! :        $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", submatch ' . i . ': \"' . l[i] . '\", expected: \"' . e . '\"'
Karsten Hopp 3ce479
! :      endif
Karsten Hopp 3ce479
! :    endfor
Karsten Hopp 3ce479
! :    unlet i
Karsten Hopp 3ce479
! :  endif
Karsten Hopp 3ce479
  :endfor
Karsten Hopp 3ce479
  :unlet t tl e l
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Check that \_[0-9] matching EOL does not break a following \>
Karsten Hopp 3ce479
  :" This only works on a buffer line, not with expression evaluation
Karsten Hopp 3ce479
  /^Find this
Karsten Hopp 3ce479
! /\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>
Karsten Hopp 3ce479
  y$Go?p:"
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :/\%#=1^Results/,$wq! test.out
Karsten Hopp 3ce479
--- 20,363 ----
Karsten Hopp 3ce479
  :"""" Previously written tests """"""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  :""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
! :call add(tl, [2, 'ab', 'aab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'b', 'abcdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'bc*', 'abccccdef', 'bcccc'])
Karsten Hopp 3ce479
! :call add(tl, [0, 'bc\{-}', 'abccccdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [0, 'bc\{-}\(d\)', 'abccccdef', 'bccccd', 'd'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'bc*', 'abbdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'c*', 'ccc', 'ccc'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'bc*', 'abdef', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'c*', 'abdef', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'bc\+', 'abccccdef', 'bcccc'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'bc\+', 'abdef']) "no match
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :"operator \|
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\|ab', 'cabd', 'a']) "alternation is ordered
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
! :call add(tl, [2, 'c\?', 'ccb', 'c'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'bc\?', 'abd', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'bc\?', 'abccd', 'bc'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{1}', 'ab', 'a'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2}', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2}', 'caad', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2}', 'aba'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2}', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2}', 'abaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2}', 'aaa', 'aa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\vb{1}', 'abca', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\vba{2}', 'abaa', 'baa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\vba{3}', 'aabaac'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){1}', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){1}', 'dabc', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){1}', 'acb'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){0,2}', 'acb', "", ""])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){0,2}', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){1,2}', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){1,2}', 'ababc', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){2,4}', 'ababcab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){2,4}', 'abcababa', 'abab', 'ab'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){2}', 'abab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){2}', 'cdababe', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){2}', 'abac'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab){2}', 'abacabab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((ab){2}){2}', 'abababab', 'abababab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((ab){2}){2}', 'abacabababab', 'abababab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1}){1}', 'a', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2}){1}', 'aa', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2}){1}', 'aaac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2}){1}', 'daaac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1}){2}', 'daaac', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1}){2}', 'aaa', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2})+', 'adaac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2})+', 'aa', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2}){1}', 'aa', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1}){2}', 'aa', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1}){1}', 'a', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2}){2}', 'aaaa', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2}){2}', 'aaabaaaa', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a+){2}', 'dadaac', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{3}){2}', 'aaaaaaa', 'aaaaaa', 'aaa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1,2}){2}', 'daaac', 'aaa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1,3}){2}', 'daaaac', 'aaaa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1,3}){2}', 'daaaaac', 'aaaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1,3}){3}', 'daac'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1,2}){2}', 'dac'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a+)+', 'daac', 'aa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a+)+', 'aaa', 'aaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a+){1,2}', 'aaa', 'aaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a+)(a+)', 'aaa', 'aaa', 'aa', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{3})+', 'daaaac', 'aaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a|b|c)+', 'aacb', 'aacb', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a|b|c){2}', 'abcb', 'ab', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(abc){2}', 'abcabd', ])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(abc){2}', 'abdabcabc','abcabc', 'abc'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, 'a*', 'cc', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a*)+', 'cc', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((ab)+)+', 'ab', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(((ab)+)+)+', 'ab', 'ab', 'ab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(((ab)+)+)+', 'dababc', 'abab', 'abab', 'abab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{0,2})+', 'cc', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a*)+', '', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((a*)+)+', '', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((ab)*)+', '', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{1,3}', 'aab', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2,3}', 'abaa', 'aa'])
Karsten Hopp 3ce479
! :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((ab)+|c*)+', 'abcccaba', 'abcccab', '', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{2})|(b{3})', 'bbabbbb', 'bbb', '', 'bbb'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{2}|b{2}', 'abab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a)+|(c)+', 'bbacbaacbbb', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\vab{2,3}c', 'aabbccccccccccccc', 'abbc'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\vab{2,3}c', 'aabbbccccccccccccc', 'abbbc'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\vab{2,3}cd{2,3}e', 'aabbbcddee', 'abbbcdde'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va(bc){2}d', 'aabcbfbc' ])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va*a{2}', 'a', ])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va*a{2}', 'aa', 'aa' ])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va*a{2}', 'aaa', 'aaa' ])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va*a{2}', 'bbbabcc', ])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va*b*|a*c*', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\va{1}b{1}|a{1}b{1}', ''])
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :"submatches
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a)', 'ab', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a)(b)', 'ab', 'ab', 'a', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(ab)(b)(c)', 'abbc', 'abbc', 'ab', 'b', 'c'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((a)(b))', 'ab', 'ab', 'ab', 'a', 'b'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a)|(b)', 'ab', 'a', 'a'])
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a*)+', 'aaaa', 'aaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x', 'abcdef'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  :""""" Simple tests """""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  :""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Search single groups
Karsten Hopp 3ce479
! :call add(tl, [2, 'ab', 'aab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'ab', 'baced'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'ab', '                    ab           ', 'ab'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Search multi-modifiers
Karsten Hopp 3ce479
! :call add(tl, [2, 'x*', 'xcd', 'x'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x*', 'xxxxxxxxxxxxxxxxsofijiojgf', 'xxxxxxxxxxxxxxxx'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x*', 'abcdoij', ''])                    " empty match is good
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\+', 'abcdoin'])                       " no match here
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\+', 'abcdeoijdfxxiuhfij', 'xx'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\+', 'xxxxx', 'xxxxx'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\+', 'abc x siufhiush xxxxxxxxx', 'x'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\=', 'x sdfoij', 'x'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\=', 'abc sfoij', '']) " empty match is good
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\=', 'xxxxxxxxx c', 'x'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\?', 'x sdfoij', 'x'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\?', 'abc sfoij', ''])                 " empty match is good
Karsten Hopp 3ce479
! :call add(tl, [2, 'x\?', 'xxxxxxxxxx c', 'x'])
Karsten Hopp 3ce479
! 
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{0,0}', 'abcdfdoij', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{0,1}', 'asiubid axxxaaa', 'a'])      " same thing as 'a?'
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{1,0}', 'asiubid axxxaaa', 'a'])      " same thing as 'a\{0,1}'
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{3,6}', 'aa siofuh'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{3,6}', 'aaaaa asfoij afaa', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{3,6}', 'aaaaaaaa', 'aaaaaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{0}', 'asoiuj', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{2}', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{2}', 'iuash fiusahfliusah fiushfilushfi uhsaifuh askfj nasfvius afg aaaa sfiuhuhiushf', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{2}', 'abcdefghijklmnopqrestuvwxyz1234567890'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{0,}', 'oij sdigfusnf', ''])          " same thing as 'a*'
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{0,}', 'aaaaa aa', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{2,}', 'sdfiougjdsafg'])
Karsten Hopp 3ce479
! :call add(tl, [0, 'a\{2,}', 'aaaaasfoij ', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{,5}', 'abcd', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{,5}', 'aaaaaaaaaa', 'aaaaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{}', 'bbbcddiuhfcd', ''])                 " same thing as 'a*'
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{}', 'aaaaioudfh coisf jda', 'aaaa'])
Karsten Hopp 3ce479
! 
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-0,0}', 'abcdfdoij', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-0,1}', 'asiubid axxxaaa', ''])      " anti-greedy version of 'a?'
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-3,6}', 'aa siofuh'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-3,6}', 'aaaaa asfoij afaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-3,6}', 'aaaaaaaa', 'aaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-0}', 'asoiuj', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-2}', 'aaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-2}', 'abcdefghijklmnopqrestuvwxyz1234567890'])
Karsten Hopp 3ce479
! :call add(tl, [0, 'a\{-0,}', 'oij sdigfusnf', ''])
Karsten Hopp 3ce479
! :call add(tl, [0, 'a\{-0,}', 'aaaaa aa', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-2,}', 'sdfiougjdsafg'])
Karsten Hopp 3ce479
! :call add(tl, [0, 'a\{-2,}', 'aaaaasfoij ', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-,0}', 'oidfguih iuhi hiu aaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-,5}', 'abcd', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-,5}', 'aaaaaaaaaa', ''])
Karsten Hopp 3ce479
! :call add(tl, [0, 'a\{-}', 'bbbcddiuhfcd', ''])            " anti-greedy version of 'a*'
Karsten Hopp 3ce479
! :call add(tl, [0, 'a\{-}', 'aaaaioudfh coisf jda', ''])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test groups of characters and submatches
Karsten Hopp 3ce479
! :call add(tl, [2, '\(abc\)*', 'abcabcabc', 'abcabcabc', 'abc'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\(ab\)\+', 'abababaaaaa', 'ababab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\(abaaaaa\)*cd', 'cd', 'cd', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\(test1\)\? \(test2\)\?', 'test1 test3', 'test1 ', 'test1', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\(test1\)\= \(test2\) \(test4443\)\=', ' test2 test4443 yupiiiiiiiiiii', ' test2 test4443', '', 'test2', 'test4443'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\(\(sub1\) hello \(sub 2\)\)', 'asterix sub1 hello sub 2 obelix', 'sub1 hello sub 2', 'sub1 hello sub 2', 'sub1', 'sub 2'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\(\(\(yyxxzz\)\)\)', 'abcdddsfiusfyyzzxxyyxxzz', 'yyxxzz', 'yyxxzz', 'yyxxzz', 'yyxxzz'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((ab)+|c+)+', 'abcccaba', 'abcccab', 'ab', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v((ab)|c*)+', 'abcccaba', 'abcccab', '', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a(c*)+b)+', 'acbababaaa', 'acbabab', 'ab', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a|b*)+', 'aaaa', 'aaaa', ''])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test greedy-ness and lazy-ness
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{-2,7}','aaaaaaaaaaaaa', 'aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a\{2,7}','aaaaaaaaaaaaaaaaaaaa', 'aaaaaaa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\vx(.{-,8})yz(.*)','xayxayzxayzxayz','xayxayzxayzxayz','ayxa','xayzxayz'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\vx(.*)yz(.*)','xayxayzxayzxayz','xayxayzxayzxayz', 'ayxayzxayzxa',''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{1,2}){-2,3}','aaaaaaa','aaaa','aa'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a{-1,3})+','aa','aa','a'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test Character classes
Karsten Hopp 3ce479
! :call add(tl, [2, '\d\+e\d\d','test 10e23 fd','10e23'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Test collections and character range []
Karsten Hopp 3ce479
! :call add(tl, [2, '\v[a]', 'abcd', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a[bcd]', 'abcd', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'a[b-d]', 'acbd', 'ac'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-d][e-f][x-x]d', 'cexdxx', 'cexd'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v[[:alpha:]]+', 'abcdefghijklmnopqrstuvwxyz6','abcdefghijklmnopqrstuvwxyz'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[[:alpha:]\+]', '6x8','x'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^abc]\+','abcabcabc'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^abc]','defghiasijvoinasoiunbvb','d'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^abc]\+','ddddddda','ddddddd'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^a-d]\+','aaaAAAZIHFNCddd','AAAZIHFNC'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-f]*','iiiiiiii',''])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-f]*','abcdefgh','abcdef'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^a-f]\+','abcdefgh','gh'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-c]\{-3,6}','abcabc','abc'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^[:alpha:]]\+','abcccadfoij7787ysf287yrnccdu','7787'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[-a]', '-', '-'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-]', '-', '-'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[-./[:alnum:]_~]\+', 'log13.file', 'log13.file'])		" filename regexp
Karsten Hopp 3ce479
! :call add(tl, [2, '[\]\^\-\\]\+', '\^\\\-\---^', '\^\\\-\---^'])			" special chars
Karsten Hopp 3ce479
! :call add(tl, [2, '[[.a.]]\+', 'aa', 'aa'])								" collation elem
Karsten Hopp 3ce479
! :call add(tl, [2, 'abc[0-9]*ddd', 'siuhabc ii'])							" middle of regexp
Karsten Hopp 3ce479
! :call add(tl, [2, 'abc[0-9]*ddd', 'adf abc44482ddd oijs', 'abc44482ddd'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\_[0-9]\+', 'asfi9888u', '9888'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[0-9\n]\+', 'asfi9888u', '9888'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test recognition of some character classes
Karsten Hopp 3ce479
! :call add(tl, [2, '[0-9]', '8', '8'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^0-9]', '8'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[0-9a-fA-F]*', '0a7', '0a7'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[^0-9A-Fa-f]\+', '0a7'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-z_A-Z0-9]\+', 'aso_sfoij', 'aso_sfoij'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-z]', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[a-zA-Z]', 'a', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[A-Z]', 'a'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Tests for \z features
Karsten Hopp 3ce479
! :call add(tl, [2, 'xx \ze test', 'xx '])					" must match after \ze
Karsten Hopp 3ce479
! :call add(tl, [0, 'abc\zeend', 'oij abcend', 'abc'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'abc\zsdd', 'ddabcddxyzt', 'dd'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'aa \zsax', ' ax'])						" must match before \zs
Karsten Hopp 3ce479
! :call add(tl, [0, 'abc \zsmatch\ze abc', 'abc abc abc match abc abc', 'match'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a \zsif .*){2}', 'a if then a if last', 'if last', 'a if last'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\>\zs.', 'aword. ', '.'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Tests for \@ features
Karsten Hopp 3ce479
! :call add(tl, [0, 'abc\@=', 'abc', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [0, 'abc\@=cd', 'abcd', 'abcd'])
Karsten Hopp 3ce479
! :call add(tl, [0, 'abc\@=', 'ababc', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'abcd\@=e', 'abcd'])                     " will never match, no matter the input text
Karsten Hopp 3ce479
! :call add(tl, [2, 'abcd\@=e', 'any text in here ... '])    " will never match
Karsten Hopp 3ce479
! :call add(tl, [0, '\v(abc)@=..', 'xabcd', 'ab', 'abc'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\(.*John\)\@=.*Bob', 'here is John, and here is B'])	" no match
Karsten Hopp 3ce479
! :call add(tl, [0, '\(John.*\)\@=.*Bob', 'John is Bobs friend', 'John is Bob', 'John is Bobs friend'])
Karsten Hopp 3ce479
! :call add(tl, [2, '.*John\&.*Bob', 'here is John, and here is B'])	" no match
Karsten Hopp 3ce479
! :call add(tl, [0, '.*John\&.*Bob', 'John is Bobs friend', 'John is Bob'])
Karsten Hopp 3ce479
! :call add(tl, [0, '\v(test1)@=.*yep', 'this is a test1, yep it is', 'test1, yep', 'test1'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Combining different tests and features
Karsten Hopp 3ce479
! :call add(tl, [2, '[[:alpha:]]\{-2,6}', '787abcdiuhsasiuhb4', 'ab'])
Karsten Hopp 3ce479
! :call add(tl, [2, '', 'abcd', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(())', 'any possible text', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v%(ab(xyz)c)', '   abxyzc ', 'abxyzc', 'xyz'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(test|)empty', 'tesempty', 'empty', ''])
Karsten Hopp 3ce479
! :call add(tl, [2, '\v(a|aa)(a|aa)', 'aaa', 'aa', 'a', 'a'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" \%u and friends
Karsten Hopp 3ce479
! :call add(tl, [2, '\%d32', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, [2, '\%o40', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, [2, '\%x20', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, [2, '\%u0020', 'yes no', ' '])
Karsten Hopp 3ce479
! :call add(tl, [2, '\%U00000020', 'yes no', ' '])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Alternatives, must use first longest match
Karsten Hopp 3ce479
! :call add(tl, [2, 'goo\|go', 'google', 'goo'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\
Karsten Hopp 3ce479
! :call add(tl, [2, '\
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Run the tests
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :for t in tl
Karsten Hopp 3ce479
! :  let re = t[0]
Karsten Hopp 3ce479
! :  let pat = t[1]
Karsten Hopp 3ce479
! :  let text = t[2]
Karsten Hopp 3ce479
! :  let matchidx = 3
Karsten Hopp 3ce479
! :  for engine in [0, 1, 2]
Karsten Hopp 3ce479
! :    if engine == 2 && !re
Karsten Hopp 3ce479
! :      continue
Karsten Hopp 3ce479
! :    endif
Karsten Hopp 3ce479
! :    let &regexpengine = engine
Karsten Hopp 3ce479
! :    let l = matchlist(text, pat)
Karsten Hopp 3ce479
  :" check the match itself
Karsten Hopp 3ce479
! :    if len(l) == 0 && len(t) > matchidx
Karsten Hopp 3ce479
! :      $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", did not match, expected: \"' . t[matchidx] . '\"'
Karsten Hopp 3ce479
! :    elseif len(l) > 0 && len(t) == matchidx
Karsten Hopp 3ce479
! :      $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", match: \"' . l[0] . '\", expected no match'
Karsten Hopp 3ce479
! :    elseif len(t) > matchidx && l[0] != t[matchidx]
Karsten Hopp 3ce479
! :      $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", match: \"' . l[0] . '\", expected: \"' . t[matchidx] . '\"'
Karsten Hopp 3ce479
! :    else
Karsten Hopp 3ce479
! :      $put ='OK ' . engine . ' - ' . pat
Karsten Hopp 3ce479
! :    endif
Karsten Hopp 3ce479
! :    if len(l) > 0
Karsten Hopp 3ce479
  :"   check all the nine submatches
Karsten Hopp 3ce479
! :      for i in range(1, 9)
Karsten Hopp 3ce479
! :        if len(t) <= matchidx + i
Karsten Hopp 3ce479
! :          let e = ''
Karsten Hopp 3ce479
! :        else
Karsten Hopp 3ce479
! :          let e = t[matchidx + i]
Karsten Hopp 3ce479
! :        endif
Karsten Hopp 3ce479
! :        if l[i] != e
Karsten Hopp 3ce479
! :          $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", submatch ' . i . ': \"' . l[i] . '\", expected: \"' . e . '\"'
Karsten Hopp 3ce479
! :        endif
Karsten Hopp 3ce479
! :      endfor
Karsten Hopp 3ce479
! :      unlet i
Karsten Hopp 3ce479
! :    endif
Karsten Hopp 3ce479
! :  endfor
Karsten Hopp 3ce479
  :endfor
Karsten Hopp 3ce479
  :unlet t tl e l
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" Check that \_[0-9] matching EOL does not break a following \>
Karsten Hopp 3ce479
  :" This only works on a buffer line, not with expression evaluation
Karsten Hopp 3ce479
  /^Find this
Karsten Hopp 3ce479
! /\%#=0\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>
Karsten Hopp 3ce479
! y$Go?p:"
Karsten Hopp 3ce479
! /^Find this
Karsten Hopp 3ce479
! /\%#=1\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>
Karsten Hopp 3ce479
! y$Go?p:"
Karsten Hopp 3ce479
! /^Find this
Karsten Hopp 3ce479
! /\%#=2\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>
Karsten Hopp 3ce479
  y$Go?p:"
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :/\%#=1^Results/,$wq! test.out
Karsten Hopp 3ce479
*** ../vim-7.3.1019/src/testdir/test64.ok	2013-05-25 20:19:45.000000000 +0200
Karsten Hopp 3ce479
--- src/testdir/test64.ok	2013-05-25 23:12:31.000000000 +0200
Karsten Hopp 3ce479
***************
Karsten Hopp 3ce479
*** 1,238 ****
Karsten Hopp 3ce479
  Results of test64:
Karsten Hopp 3ce479
! OK - ab
Karsten Hopp 3ce479
! OK - b
Karsten Hopp 3ce479
! OK - bc*
Karsten Hopp 3ce479
! OK - bc\{-}
Karsten Hopp 3ce479
! OK - bc\{-}\(d\)
Karsten Hopp 3ce479
! OK - bc*
Karsten Hopp 3ce479
! OK - c*
Karsten Hopp 3ce479
! OK - bc*
Karsten Hopp 3ce479
! OK - c*
Karsten Hopp 3ce479
! OK - bc\+
Karsten Hopp 3ce479
! OK - bc\+
Karsten Hopp 3ce479
! OK - a\|ab
Karsten Hopp 3ce479
! OK - c\?
Karsten Hopp 3ce479
! OK - bc\?
Karsten Hopp 3ce479
! OK - bc\?
Karsten Hopp 3ce479
! OK - \va{1}
Karsten Hopp 3ce479
! OK - \va{2}
Karsten Hopp 3ce479
! OK - \va{2}
Karsten Hopp 3ce479
! OK - \va{2}
Karsten Hopp 3ce479
! OK - \va{2}
Karsten Hopp 3ce479
! OK - \va{2}
Karsten Hopp 3ce479
! OK - \va{2}
Karsten Hopp 3ce479
! OK - \vb{1}
Karsten Hopp 3ce479
! OK - \vba{2}
Karsten Hopp 3ce479
! OK - \vba{3}
Karsten Hopp 3ce479
! OK - \v(ab){1}
Karsten Hopp 3ce479
! OK - \v(ab){1}
Karsten Hopp 3ce479
! OK - \v(ab){1}
Karsten Hopp 3ce479
! OK - \v(ab){0,2}
Karsten Hopp 3ce479
! OK - \v(ab){0,2}
Karsten Hopp 3ce479
! OK - \v(ab){1,2}
Karsten Hopp 3ce479
! OK - \v(ab){1,2}
Karsten Hopp 3ce479
! OK - \v(ab){2,4}
Karsten Hopp 3ce479
! OK - \v(ab){2,4}
Karsten Hopp 3ce479
! OK - \v(ab){2}
Karsten Hopp 3ce479
! OK - \v(ab){2}
Karsten Hopp 3ce479
! OK - \v(ab){2}
Karsten Hopp 3ce479
! OK - \v(ab){2}
Karsten Hopp 3ce479
! OK - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK - \v(a{1}){1}
Karsten Hopp 3ce479
! OK - \v(a{2}){1}
Karsten Hopp 3ce479
! OK - \v(a{2}){1}
Karsten Hopp 3ce479
! OK - \v(a{2}){1}
Karsten Hopp 3ce479
! OK - \v(a{1}){2}
Karsten Hopp 3ce479
! OK - \v(a{1}){2}
Karsten Hopp 3ce479
! OK - \v(a{2})+
Karsten Hopp 3ce479
! OK - \v(a{2})+
Karsten Hopp 3ce479
! OK - \v(a{2}){1}
Karsten Hopp 3ce479
! OK - \v(a{1}){2}
Karsten Hopp 3ce479
! OK - \v(a{1}){1}
Karsten Hopp 3ce479
! OK - \v(a{2}){2}
Karsten Hopp 3ce479
! OK - \v(a{2}){2}
Karsten Hopp 3ce479
! OK - \v(a+){2}
Karsten Hopp 3ce479
! OK - \v(a{3}){2}
Karsten Hopp 3ce479
! OK - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK - \v(a{1,3}){3}
Karsten Hopp 3ce479
! OK - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK - \v(a+)+
Karsten Hopp 3ce479
! OK - \v(a+)+
Karsten Hopp 3ce479
! OK - \v(a+){1,2}
Karsten Hopp 3ce479
! OK - \v(a+)(a+)
Karsten Hopp 3ce479
! OK - \v(a{3})+
Karsten Hopp 3ce479
! OK - \v(a|b|c)+
Karsten Hopp 3ce479
! OK - \v(a|b|c){2}
Karsten Hopp 3ce479
! OK - \v(abc){2}
Karsten Hopp 3ce479
! OK - \v(abc){2}
Karsten Hopp 3ce479
! OK - a*
Karsten Hopp 3ce479
! OK - \v(a*)+
Karsten Hopp 3ce479
! OK - \v((ab)+)+
Karsten Hopp 3ce479
! OK - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK - \v(a{0,2})+
Karsten Hopp 3ce479
! OK - \v(a*)+
Karsten Hopp 3ce479
! OK - \v((a*)+)+
Karsten Hopp 3ce479
! OK - \v((ab)*)+
Karsten Hopp 3ce479
! OK - \va{1,3}
Karsten Hopp 3ce479
! OK - \va{2,3}
Karsten Hopp 3ce479
! OK - \v((ab)+|c*)+
Karsten Hopp 3ce479
! OK - \v(a{2})|(b{3})
Karsten Hopp 3ce479
! OK - \va{2}|b{2}
Karsten Hopp 3ce479
! OK - \v(a)+|(c)+
Karsten Hopp 3ce479
! OK - \vab{2,3}c
Karsten Hopp 3ce479
! OK - \vab{2,3}c
Karsten Hopp 3ce479
! OK - \vab{2,3}cd{2,3}e
Karsten Hopp 3ce479
! OK - \va(bc){2}d
Karsten Hopp 3ce479
! OK - \va*a{2}
Karsten Hopp 3ce479
! OK - \va*a{2}
Karsten Hopp 3ce479
! OK - \va*a{2}
Karsten Hopp 3ce479
! OK - \va*a{2}
Karsten Hopp 3ce479
! OK - \va*b*|a*c*
Karsten Hopp 3ce479
! OK - \va{1}b{1}|a{1}b{1}
Karsten Hopp 3ce479
! OK - \v(a)
Karsten Hopp 3ce479
! OK - \v(a)(b)
Karsten Hopp 3ce479
! OK - \v(ab)(b)(c)
Karsten Hopp 3ce479
! OK - \v((a)(b))
Karsten Hopp 3ce479
! OK - \v(a)|(b)
Karsten Hopp 3ce479
! OK - \v(a*)+
Karsten Hopp 3ce479
! OK - x
Karsten Hopp 3ce479
! OK - ab
Karsten Hopp 3ce479
! OK - ab
Karsten Hopp 3ce479
! OK - ab
Karsten Hopp 3ce479
! OK - x*
Karsten Hopp 3ce479
! OK - x*
Karsten Hopp 3ce479
! OK - x*
Karsten Hopp 3ce479
! OK - x\+
Karsten Hopp 3ce479
! OK - x\+
Karsten Hopp 3ce479
! OK - x\+
Karsten Hopp 3ce479
! OK - x\+
Karsten Hopp 3ce479
! OK - x\=
Karsten Hopp 3ce479
! OK - x\=
Karsten Hopp 3ce479
! OK - x\=
Karsten Hopp 3ce479
! OK - x\?
Karsten Hopp 3ce479
! OK - x\?
Karsten Hopp 3ce479
! OK - x\?
Karsten Hopp 3ce479
! OK - a\{0,0}
Karsten Hopp 3ce479
! OK - a\{0,1}
Karsten Hopp 3ce479
! OK - a\{1,0}
Karsten Hopp 3ce479
! OK - a\{3,6}
Karsten Hopp 3ce479
! OK - a\{3,6}
Karsten Hopp 3ce479
! OK - a\{3,6}
Karsten Hopp 3ce479
! OK - a\{0}
Karsten Hopp 3ce479
! OK - a\{2}
Karsten Hopp 3ce479
! OK - a\{2}
Karsten Hopp 3ce479
! OK - a\{2}
Karsten Hopp 3ce479
! OK - a\{0,}
Karsten Hopp 3ce479
! OK - a\{0,}
Karsten Hopp 3ce479
! OK - a\{2,}
Karsten Hopp 3ce479
! OK - a\{2,}
Karsten Hopp 3ce479
! OK - a\{,0}
Karsten Hopp 3ce479
! OK - a\{,5}
Karsten Hopp 3ce479
! OK - a\{,5}
Karsten Hopp 3ce479
! OK - a\{}
Karsten Hopp 3ce479
! OK - a\{}
Karsten Hopp 3ce479
! OK - a\{-0,0}
Karsten Hopp 3ce479
! OK - a\{-0,1}
Karsten Hopp 3ce479
! OK - a\{-3,6}
Karsten Hopp 3ce479
! OK - a\{-3,6}
Karsten Hopp 3ce479
! OK - a\{-3,6}
Karsten Hopp 3ce479
! OK - a\{-0}
Karsten Hopp 3ce479
! OK - a\{-2}
Karsten Hopp 3ce479
! OK - a\{-2}
Karsten Hopp 3ce479
! OK - a\{-0,}
Karsten Hopp 3ce479
! OK - a\{-0,}
Karsten Hopp 3ce479
! OK - a\{-2,}
Karsten Hopp 3ce479
! OK - a\{-2,}
Karsten Hopp 3ce479
! OK - a\{-,0}
Karsten Hopp 3ce479
! OK - a\{-,5}
Karsten Hopp 3ce479
! OK - a\{-,5}
Karsten Hopp 3ce479
! OK - a\{-}
Karsten Hopp 3ce479
! OK - a\{-}
Karsten Hopp 3ce479
! OK - \(abc\)*
Karsten Hopp 3ce479
! OK - \(ab\)\+
Karsten Hopp 3ce479
! OK - \(abaaaaa\)*cd
Karsten Hopp 3ce479
! OK - \(test1\)\? \(test2\)\?
Karsten Hopp 3ce479
! OK - \(test1\)\= \(test2\) \(test4443\)\=
Karsten Hopp 3ce479
! OK - \(\(sub1\) hello \(sub 2\)\)
Karsten Hopp 3ce479
! OK - \(\(\(yyxxzz\)\)\)
Karsten Hopp 3ce479
! OK - \v((ab)+|c+)+
Karsten Hopp 3ce479
! OK - \v((ab)|c*)+
Karsten Hopp 3ce479
! OK - \v(a(c*)+b)+
Karsten Hopp 3ce479
! OK - \v(a|b*)+
Karsten Hopp 3ce479
! OK - a\{-2,7}
Karsten Hopp 3ce479
! OK - a\{2,7}
Karsten Hopp 3ce479
! OK - \vx(.{-,8})yz(.*)
Karsten Hopp 3ce479
! OK - \vx(.*)yz(.*)
Karsten Hopp 3ce479
! OK - \v(a{1,2}){-2,3}
Karsten Hopp 3ce479
! OK - \v(a{-1,3})+
Karsten Hopp 3ce479
! OK - \d\+e\d\d
Karsten Hopp 3ce479
! OK - \v[a]
Karsten Hopp 3ce479
! OK - a[bcd]
Karsten Hopp 3ce479
! OK - a[b-d]
Karsten Hopp 3ce479
! OK - [a-d][e-f][x-x]d
Karsten Hopp 3ce479
! OK - \v[[:alpha:]]+
Karsten Hopp 3ce479
! OK - [[:alpha:]\+]
Karsten Hopp 3ce479
! OK - [^abc]\+
Karsten Hopp 3ce479
! OK - [^abc]
Karsten Hopp 3ce479
! OK - [^abc]\+
Karsten Hopp 3ce479
! OK - [^a-d]\+
Karsten Hopp 3ce479
! OK - [a-f]*
Karsten Hopp 3ce479
! OK - [a-f]*
Karsten Hopp 3ce479
! OK - [^a-f]\+
Karsten Hopp 3ce479
! OK - [a-c]\{-3,6}
Karsten Hopp 3ce479
! OK - [^[:alpha:]]\+
Karsten Hopp 3ce479
! OK - [-a]
Karsten Hopp 3ce479
! OK - [a-]
Karsten Hopp 3ce479
! OK - [-./[:alnum:]_~]\+
Karsten Hopp 3ce479
! OK - [\]\^\-\\]\+
Karsten Hopp 3ce479
! OK - [[.a.]]\+
Karsten Hopp 3ce479
! OK - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK - \_[0-9]\+
Karsten Hopp 3ce479
! OK - [0-9\n]\+
Karsten Hopp 3ce479
! OK - [0-9]
Karsten Hopp 3ce479
! OK - [^0-9]
Karsten Hopp 3ce479
! OK - [0-9a-fA-F]*
Karsten Hopp 3ce479
! OK - [^0-9A-Fa-f]\+
Karsten Hopp 3ce479
! OK - [a-z_A-Z0-9]\+
Karsten Hopp 3ce479
! OK - [a-z]
Karsten Hopp 3ce479
! OK - [a-zA-Z]
Karsten Hopp 3ce479
! OK - [A-Z]
Karsten Hopp 3ce479
! OK - \C[^A-Z]\+
Karsten Hopp 3ce479
! OK - xx \ze test
Karsten Hopp 3ce479
! OK - abc\zeend
Karsten Hopp 3ce479
! OK - abc\zsdd
Karsten Hopp 3ce479
! OK - aa \zsax
Karsten Hopp 3ce479
! OK - abc \zsmatch\ze abc
Karsten Hopp 3ce479
! OK - \v(a \zsif .*){2}
Karsten Hopp 3ce479
! OK - \>\zs.
Karsten Hopp 3ce479
! OK - abc\@=
Karsten Hopp 3ce479
! OK - abc\@=cd
Karsten Hopp 3ce479
! OK - abc\@=
Karsten Hopp 3ce479
! OK - abcd\@=e
Karsten Hopp 3ce479
! OK - abcd\@=e
Karsten Hopp 3ce479
! OK - \v(abc)@=..
Karsten Hopp 3ce479
! OK - \(.*John\)\@=.*Bob
Karsten Hopp 3ce479
! OK - \(John.*\)\@=.*Bob
Karsten Hopp 3ce479
! OK - .*John\&.*Bob
Karsten Hopp 3ce479
! OK - .*John\&.*Bob
Karsten Hopp 3ce479
! OK - \v(test1)@=.*yep
Karsten Hopp 3ce479
! OK - [[:alpha:]]\{-2,6}
Karsten Hopp 3ce479
! OK - 
Karsten Hopp 3ce479
! OK - \v(())
Karsten Hopp 3ce479
! OK - \v%(ab(xyz)c)
Karsten Hopp 3ce479
! OK - \v(test|)empty
Karsten Hopp 3ce479
! OK - \v(a|aa)(a|aa)
Karsten Hopp 3ce479
! OK - \%d32
Karsten Hopp 3ce479
! OK - \%o40
Karsten Hopp 3ce479
! OK - \%x20
Karsten Hopp 3ce479
! OK - \%u0020
Karsten Hopp 3ce479
! OK - \%U00000020
Karsten Hopp 3ce479
! OK - goo\|go
Karsten Hopp 3ce479
! OK - \
Karsten Hopp 3ce479
! OK - \
Karsten Hopp 3ce479
  192.168.0.1
Karsten Hopp 3ce479
--- 1,695 ----
Karsten Hopp 3ce479
  Results of test64:
Karsten Hopp 3ce479
! OK 0 - ab
Karsten Hopp 3ce479
! OK 1 - ab
Karsten Hopp 3ce479
! OK 2 - ab
Karsten Hopp 3ce479
! OK 0 - b
Karsten Hopp 3ce479
! OK 1 - b
Karsten Hopp 3ce479
! OK 2 - b
Karsten Hopp 3ce479
! OK 0 - bc*
Karsten Hopp 3ce479
! OK 1 - bc*
Karsten Hopp 3ce479
! OK 2 - bc*
Karsten Hopp 3ce479
! OK 0 - bc\{-}
Karsten Hopp 3ce479
! OK 1 - bc\{-}
Karsten Hopp 3ce479
! OK 0 - bc\{-}\(d\)
Karsten Hopp 3ce479
! OK 1 - bc\{-}\(d\)
Karsten Hopp 3ce479
! OK 0 - bc*
Karsten Hopp 3ce479
! OK 1 - bc*
Karsten Hopp 3ce479
! OK 2 - bc*
Karsten Hopp 3ce479
! OK 0 - c*
Karsten Hopp 3ce479
! OK 1 - c*
Karsten Hopp 3ce479
! OK 2 - c*
Karsten Hopp 3ce479
! OK 0 - bc*
Karsten Hopp 3ce479
! OK 1 - bc*
Karsten Hopp 3ce479
! OK 2 - bc*
Karsten Hopp 3ce479
! OK 0 - c*
Karsten Hopp 3ce479
! OK 1 - c*
Karsten Hopp 3ce479
! OK 2 - c*
Karsten Hopp 3ce479
! OK 0 - bc\+
Karsten Hopp 3ce479
! OK 1 - bc\+
Karsten Hopp 3ce479
! OK 2 - bc\+
Karsten Hopp 3ce479
! OK 0 - bc\+
Karsten Hopp 3ce479
! OK 1 - bc\+
Karsten Hopp 3ce479
! OK 2 - bc\+
Karsten Hopp 3ce479
! OK 0 - a\|ab
Karsten Hopp 3ce479
! OK 1 - a\|ab
Karsten Hopp 3ce479
! OK 2 - a\|ab
Karsten Hopp 3ce479
! OK 0 - c\?
Karsten Hopp 3ce479
! OK 1 - c\?
Karsten Hopp 3ce479
! OK 2 - c\?
Karsten Hopp 3ce479
! OK 0 - bc\?
Karsten Hopp 3ce479
! OK 1 - bc\?
Karsten Hopp 3ce479
! OK 2 - bc\?
Karsten Hopp 3ce479
! OK 0 - bc\?
Karsten Hopp 3ce479
! OK 1 - bc\?
Karsten Hopp 3ce479
! OK 2 - bc\?
Karsten Hopp 3ce479
! OK 0 - \va{1}
Karsten Hopp 3ce479
! OK 1 - \va{1}
Karsten Hopp 3ce479
! OK 2 - \va{1}
Karsten Hopp 3ce479
! OK 0 - \va{2}
Karsten Hopp 3ce479
! OK 1 - \va{2}
Karsten Hopp 3ce479
! OK 2 - \va{2}
Karsten Hopp 3ce479
! OK 0 - \va{2}
Karsten Hopp 3ce479
! OK 1 - \va{2}
Karsten Hopp 3ce479
! OK 2 - \va{2}
Karsten Hopp 3ce479
! OK 0 - \va{2}
Karsten Hopp 3ce479
! OK 1 - \va{2}
Karsten Hopp 3ce479
! OK 2 - \va{2}
Karsten Hopp 3ce479
! OK 0 - \va{2}
Karsten Hopp 3ce479
! OK 1 - \va{2}
Karsten Hopp 3ce479
! OK 2 - \va{2}
Karsten Hopp 3ce479
! OK 0 - \va{2}
Karsten Hopp 3ce479
! OK 1 - \va{2}
Karsten Hopp 3ce479
! OK 2 - \va{2}
Karsten Hopp 3ce479
! OK 0 - \va{2}
Karsten Hopp 3ce479
! OK 1 - \va{2}
Karsten Hopp 3ce479
! OK 2 - \va{2}
Karsten Hopp 3ce479
! OK 0 - \vb{1}
Karsten Hopp 3ce479
! OK 1 - \vb{1}
Karsten Hopp 3ce479
! OK 2 - \vb{1}
Karsten Hopp 3ce479
! OK 0 - \vba{2}
Karsten Hopp 3ce479
! OK 1 - \vba{2}
Karsten Hopp 3ce479
! OK 2 - \vba{2}
Karsten Hopp 3ce479
! OK 0 - \vba{3}
Karsten Hopp 3ce479
! OK 1 - \vba{3}
Karsten Hopp 3ce479
! OK 2 - \vba{3}
Karsten Hopp 3ce479
! OK 0 - \v(ab){1}
Karsten Hopp 3ce479
! OK 1 - \v(ab){1}
Karsten Hopp 3ce479
! OK 2 - \v(ab){1}
Karsten Hopp 3ce479
! OK 0 - \v(ab){1}
Karsten Hopp 3ce479
! OK 1 - \v(ab){1}
Karsten Hopp 3ce479
! OK 2 - \v(ab){1}
Karsten Hopp 3ce479
! OK 0 - \v(ab){1}
Karsten Hopp 3ce479
! OK 1 - \v(ab){1}
Karsten Hopp 3ce479
! OK 2 - \v(ab){1}
Karsten Hopp 3ce479
! OK 0 - \v(ab){0,2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){0,2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){0,2}
Karsten Hopp 3ce479
! OK 0 - \v(ab){0,2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){0,2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){0,2}
Karsten Hopp 3ce479
! OK 0 - \v(ab){1,2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){1,2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){1,2}
Karsten Hopp 3ce479
! OK 0 - \v(ab){1,2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){1,2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){1,2}
Karsten Hopp 3ce479
! OK 0 - \v(ab){2,4}
Karsten Hopp 3ce479
! OK 1 - \v(ab){2,4}
Karsten Hopp 3ce479
! OK 2 - \v(ab){2,4}
Karsten Hopp 3ce479
! OK 0 - \v(ab){2,4}
Karsten Hopp 3ce479
! OK 1 - \v(ab){2,4}
Karsten Hopp 3ce479
! OK 2 - \v(ab){2,4}
Karsten Hopp 3ce479
! OK 0 - \v(ab){2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){2}
Karsten Hopp 3ce479
! OK 0 - \v(ab){2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){2}
Karsten Hopp 3ce479
! OK 0 - \v(ab){2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){2}
Karsten Hopp 3ce479
! OK 0 - \v(ab){2}
Karsten Hopp 3ce479
! OK 1 - \v(ab){2}
Karsten Hopp 3ce479
! OK 2 - \v(ab){2}
Karsten Hopp 3ce479
! OK 0 - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK 1 - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK 2 - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK 0 - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK 1 - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK 2 - \v((ab){2}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{1}){1}
Karsten Hopp 3ce479
! OK 1 - \v(a{1}){1}
Karsten Hopp 3ce479
! OK 2 - \v(a{1}){1}
Karsten Hopp 3ce479
! OK 0 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 1 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 2 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 0 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 1 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 2 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 0 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 1 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 2 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 0 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{2})+
Karsten Hopp 3ce479
! OK 1 - \v(a{2})+
Karsten Hopp 3ce479
! OK 2 - \v(a{2})+
Karsten Hopp 3ce479
! OK 0 - \v(a{2})+
Karsten Hopp 3ce479
! OK 1 - \v(a{2})+
Karsten Hopp 3ce479
! OK 2 - \v(a{2})+
Karsten Hopp 3ce479
! OK 0 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 1 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 2 - \v(a{2}){1}
Karsten Hopp 3ce479
! OK 0 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{1}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{1}){1}
Karsten Hopp 3ce479
! OK 1 - \v(a{1}){1}
Karsten Hopp 3ce479
! OK 2 - \v(a{1}){1}
Karsten Hopp 3ce479
! OK 0 - \v(a{2}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{2}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{2}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{2}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{2}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{2}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a+){2}
Karsten Hopp 3ce479
! OK 1 - \v(a+){2}
Karsten Hopp 3ce479
! OK 2 - \v(a+){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{3}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{3}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{3}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{1,3}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a{1,3}){3}
Karsten Hopp 3ce479
! OK 1 - \v(a{1,3}){3}
Karsten Hopp 3ce479
! OK 2 - \v(a{1,3}){3}
Karsten Hopp 3ce479
! OK 0 - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK 1 - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK 2 - \v(a{1,2}){2}
Karsten Hopp 3ce479
! OK 0 - \v(a+)+
Karsten Hopp 3ce479
! OK 1 - \v(a+)+
Karsten Hopp 3ce479
! OK 2 - \v(a+)+
Karsten Hopp 3ce479
! OK 0 - \v(a+)+
Karsten Hopp 3ce479
! OK 1 - \v(a+)+
Karsten Hopp 3ce479
! OK 2 - \v(a+)+
Karsten Hopp 3ce479
! OK 0 - \v(a+){1,2}
Karsten Hopp 3ce479
! OK 1 - \v(a+){1,2}
Karsten Hopp 3ce479
! OK 2 - \v(a+){1,2}
Karsten Hopp 3ce479
! OK 0 - \v(a+)(a+)
Karsten Hopp 3ce479
! OK 1 - \v(a+)(a+)
Karsten Hopp 3ce479
! OK 2 - \v(a+)(a+)
Karsten Hopp 3ce479
! OK 0 - \v(a{3})+
Karsten Hopp 3ce479
! OK 1 - \v(a{3})+
Karsten Hopp 3ce479
! OK 2 - \v(a{3})+
Karsten Hopp 3ce479
! OK 0 - \v(a|b|c)+
Karsten Hopp 3ce479
! OK 1 - \v(a|b|c)+
Karsten Hopp 3ce479
! OK 2 - \v(a|b|c)+
Karsten Hopp 3ce479
! OK 0 - \v(a|b|c){2}
Karsten Hopp 3ce479
! OK 1 - \v(a|b|c){2}
Karsten Hopp 3ce479
! OK 2 - \v(a|b|c){2}
Karsten Hopp 3ce479
! OK 0 - \v(abc){2}
Karsten Hopp 3ce479
! OK 1 - \v(abc){2}
Karsten Hopp 3ce479
! OK 2 - \v(abc){2}
Karsten Hopp 3ce479
! OK 0 - \v(abc){2}
Karsten Hopp 3ce479
! OK 1 - \v(abc){2}
Karsten Hopp 3ce479
! OK 2 - \v(abc){2}
Karsten Hopp 3ce479
! OK 0 - a*
Karsten Hopp 3ce479
! OK 1 - a*
Karsten Hopp 3ce479
! OK 2 - a*
Karsten Hopp 3ce479
! OK 0 - \v(a*)+
Karsten Hopp 3ce479
! OK 1 - \v(a*)+
Karsten Hopp 3ce479
! OK 2 - \v(a*)+
Karsten Hopp 3ce479
! OK 0 - \v((ab)+)+
Karsten Hopp 3ce479
! OK 1 - \v((ab)+)+
Karsten Hopp 3ce479
! OK 2 - \v((ab)+)+
Karsten Hopp 3ce479
! OK 0 - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK 1 - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK 2 - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK 0 - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK 1 - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK 2 - \v(((ab)+)+)+
Karsten Hopp 3ce479
! OK 0 - \v(a{0,2})+
Karsten Hopp 3ce479
! OK 1 - \v(a{0,2})+
Karsten Hopp 3ce479
! OK 2 - \v(a{0,2})+
Karsten Hopp 3ce479
! OK 0 - \v(a*)+
Karsten Hopp 3ce479
! OK 1 - \v(a*)+
Karsten Hopp 3ce479
! OK 2 - \v(a*)+
Karsten Hopp 3ce479
! OK 0 - \v((a*)+)+
Karsten Hopp 3ce479
! OK 1 - \v((a*)+)+
Karsten Hopp 3ce479
! OK 2 - \v((a*)+)+
Karsten Hopp 3ce479
! OK 0 - \v((ab)*)+
Karsten Hopp 3ce479
! OK 1 - \v((ab)*)+
Karsten Hopp 3ce479
! OK 2 - \v((ab)*)+
Karsten Hopp 3ce479
! OK 0 - \va{1,3}
Karsten Hopp 3ce479
! OK 1 - \va{1,3}
Karsten Hopp 3ce479
! OK 2 - \va{1,3}
Karsten Hopp 3ce479
! OK 0 - \va{2,3}
Karsten Hopp 3ce479
! OK 1 - \va{2,3}
Karsten Hopp 3ce479
! OK 2 - \va{2,3}
Karsten Hopp 3ce479
! OK 0 - \v((ab)+|c*)+
Karsten Hopp 3ce479
! OK 1 - \v((ab)+|c*)+
Karsten Hopp 3ce479
! OK 2 - \v((ab)+|c*)+
Karsten Hopp 3ce479
! OK 0 - \v(a{2})|(b{3})
Karsten Hopp 3ce479
! OK 1 - \v(a{2})|(b{3})
Karsten Hopp 3ce479
! OK 2 - \v(a{2})|(b{3})
Karsten Hopp 3ce479
! OK 0 - \va{2}|b{2}
Karsten Hopp 3ce479
! OK 1 - \va{2}|b{2}
Karsten Hopp 3ce479
! OK 2 - \va{2}|b{2}
Karsten Hopp 3ce479
! OK 0 - \v(a)+|(c)+
Karsten Hopp 3ce479
! OK 1 - \v(a)+|(c)+
Karsten Hopp 3ce479
! OK 2 - \v(a)+|(c)+
Karsten Hopp 3ce479
! OK 0 - \vab{2,3}c
Karsten Hopp 3ce479
! OK 1 - \vab{2,3}c
Karsten Hopp 3ce479
! OK 2 - \vab{2,3}c
Karsten Hopp 3ce479
! OK 0 - \vab{2,3}c
Karsten Hopp 3ce479
! OK 1 - \vab{2,3}c
Karsten Hopp 3ce479
! OK 2 - \vab{2,3}c
Karsten Hopp 3ce479
! OK 0 - \vab{2,3}cd{2,3}e
Karsten Hopp 3ce479
! OK 1 - \vab{2,3}cd{2,3}e
Karsten Hopp 3ce479
! OK 2 - \vab{2,3}cd{2,3}e
Karsten Hopp 3ce479
! OK 0 - \va(bc){2}d
Karsten Hopp 3ce479
! OK 1 - \va(bc){2}d
Karsten Hopp 3ce479
! OK 2 - \va(bc){2}d
Karsten Hopp 3ce479
! OK 0 - \va*a{2}
Karsten Hopp 3ce479
! OK 1 - \va*a{2}
Karsten Hopp 3ce479
! OK 2 - \va*a{2}
Karsten Hopp 3ce479
! OK 0 - \va*a{2}
Karsten Hopp 3ce479
! OK 1 - \va*a{2}
Karsten Hopp 3ce479
! OK 2 - \va*a{2}
Karsten Hopp 3ce479
! OK 0 - \va*a{2}
Karsten Hopp 3ce479
! OK 1 - \va*a{2}
Karsten Hopp 3ce479
! OK 2 - \va*a{2}
Karsten Hopp 3ce479
! OK 0 - \va*a{2}
Karsten Hopp 3ce479
! OK 1 - \va*a{2}
Karsten Hopp 3ce479
! OK 2 - \va*a{2}
Karsten Hopp 3ce479
! OK 0 - \va*b*|a*c*
Karsten Hopp 3ce479
! OK 1 - \va*b*|a*c*
Karsten Hopp 3ce479
! OK 2 - \va*b*|a*c*
Karsten Hopp 3ce479
! OK 0 - \va{1}b{1}|a{1}b{1}
Karsten Hopp 3ce479
! OK 1 - \va{1}b{1}|a{1}b{1}
Karsten Hopp 3ce479
! OK 2 - \va{1}b{1}|a{1}b{1}
Karsten Hopp 3ce479
! OK 0 - \v(a)
Karsten Hopp 3ce479
! OK 1 - \v(a)
Karsten Hopp 3ce479
! OK 2 - \v(a)
Karsten Hopp 3ce479
! OK 0 - \v(a)(b)
Karsten Hopp 3ce479
! OK 1 - \v(a)(b)
Karsten Hopp 3ce479
! OK 2 - \v(a)(b)
Karsten Hopp 3ce479
! OK 0 - \v(ab)(b)(c)
Karsten Hopp 3ce479
! OK 1 - \v(ab)(b)(c)
Karsten Hopp 3ce479
! OK 2 - \v(ab)(b)(c)
Karsten Hopp 3ce479
! OK 0 - \v((a)(b))
Karsten Hopp 3ce479
! OK 1 - \v((a)(b))
Karsten Hopp 3ce479
! OK 2 - \v((a)(b))
Karsten Hopp 3ce479
! OK 0 - \v(a)|(b)
Karsten Hopp 3ce479
! OK 1 - \v(a)|(b)
Karsten Hopp 3ce479
! OK 2 - \v(a)|(b)
Karsten Hopp 3ce479
! OK 0 - \v(a*)+
Karsten Hopp 3ce479
! OK 1 - \v(a*)+
Karsten Hopp 3ce479
! OK 2 - \v(a*)+
Karsten Hopp 3ce479
! OK 0 - x
Karsten Hopp 3ce479
! OK 1 - x
Karsten Hopp 3ce479
! OK 2 - x
Karsten Hopp 3ce479
! OK 0 - ab
Karsten Hopp 3ce479
! OK 1 - ab
Karsten Hopp 3ce479
! OK 2 - ab
Karsten Hopp 3ce479
! OK 0 - ab
Karsten Hopp 3ce479
! OK 1 - ab
Karsten Hopp 3ce479
! OK 2 - ab
Karsten Hopp 3ce479
! OK 0 - ab
Karsten Hopp 3ce479
! OK 1 - ab
Karsten Hopp 3ce479
! OK 2 - ab
Karsten Hopp 3ce479
! OK 0 - x*
Karsten Hopp 3ce479
! OK 1 - x*
Karsten Hopp 3ce479
! OK 2 - x*
Karsten Hopp 3ce479
! OK 0 - x*
Karsten Hopp 3ce479
! OK 1 - x*
Karsten Hopp 3ce479
! OK 2 - x*
Karsten Hopp 3ce479
! OK 0 - x*
Karsten Hopp 3ce479
! OK 1 - x*
Karsten Hopp 3ce479
! OK 2 - x*
Karsten Hopp 3ce479
! OK 0 - x\+
Karsten Hopp 3ce479
! OK 1 - x\+
Karsten Hopp 3ce479
! OK 2 - x\+
Karsten Hopp 3ce479
! OK 0 - x\+
Karsten Hopp 3ce479
! OK 1 - x\+
Karsten Hopp 3ce479
! OK 2 - x\+
Karsten Hopp 3ce479
! OK 0 - x\+
Karsten Hopp 3ce479
! OK 1 - x\+
Karsten Hopp 3ce479
! OK 2 - x\+
Karsten Hopp 3ce479
! OK 0 - x\+
Karsten Hopp 3ce479
! OK 1 - x\+
Karsten Hopp 3ce479
! OK 2 - x\+
Karsten Hopp 3ce479
! OK 0 - x\=
Karsten Hopp 3ce479
! OK 1 - x\=
Karsten Hopp 3ce479
! OK 2 - x\=
Karsten Hopp 3ce479
! OK 0 - x\=
Karsten Hopp 3ce479
! OK 1 - x\=
Karsten Hopp 3ce479
! OK 2 - x\=
Karsten Hopp 3ce479
! OK 0 - x\=
Karsten Hopp 3ce479
! OK 1 - x\=
Karsten Hopp 3ce479
! OK 2 - x\=
Karsten Hopp 3ce479
! OK 0 - x\?
Karsten Hopp 3ce479
! OK 1 - x\?
Karsten Hopp 3ce479
! OK 2 - x\?
Karsten Hopp 3ce479
! OK 0 - x\?
Karsten Hopp 3ce479
! OK 1 - x\?
Karsten Hopp 3ce479
! OK 2 - x\?
Karsten Hopp 3ce479
! OK 0 - x\?
Karsten Hopp 3ce479
! OK 1 - x\?
Karsten Hopp 3ce479
! OK 2 - x\?
Karsten Hopp 3ce479
! OK 0 - a\{0,0}
Karsten Hopp 3ce479
! OK 1 - a\{0,0}
Karsten Hopp 3ce479
! OK 2 - a\{0,0}
Karsten Hopp 3ce479
! OK 0 - a\{0,1}
Karsten Hopp 3ce479
! OK 1 - a\{0,1}
Karsten Hopp 3ce479
! OK 2 - a\{0,1}
Karsten Hopp 3ce479
! OK 0 - a\{1,0}
Karsten Hopp 3ce479
! OK 1 - a\{1,0}
Karsten Hopp 3ce479
! OK 2 - a\{1,0}
Karsten Hopp 3ce479
! OK 0 - a\{3,6}
Karsten Hopp 3ce479
! OK 1 - a\{3,6}
Karsten Hopp 3ce479
! OK 2 - a\{3,6}
Karsten Hopp 3ce479
! OK 0 - a\{3,6}
Karsten Hopp 3ce479
! OK 1 - a\{3,6}
Karsten Hopp 3ce479
! OK 2 - a\{3,6}
Karsten Hopp 3ce479
! OK 0 - a\{3,6}
Karsten Hopp 3ce479
! OK 1 - a\{3,6}
Karsten Hopp 3ce479
! OK 2 - a\{3,6}
Karsten Hopp 3ce479
! OK 0 - a\{0}
Karsten Hopp 3ce479
! OK 1 - a\{0}
Karsten Hopp 3ce479
! OK 2 - a\{0}
Karsten Hopp 3ce479
! OK 0 - a\{2}
Karsten Hopp 3ce479
! OK 1 - a\{2}
Karsten Hopp 3ce479
! OK 2 - a\{2}
Karsten Hopp 3ce479
! OK 0 - a\{2}
Karsten Hopp 3ce479
! OK 1 - a\{2}
Karsten Hopp 3ce479
! OK 2 - a\{2}
Karsten Hopp 3ce479
! OK 0 - a\{2}
Karsten Hopp 3ce479
! OK 1 - a\{2}
Karsten Hopp 3ce479
! OK 2 - a\{2}
Karsten Hopp 3ce479
! OK 0 - a\{0,}
Karsten Hopp 3ce479
! OK 1 - a\{0,}
Karsten Hopp 3ce479
! OK 2 - a\{0,}
Karsten Hopp 3ce479
! OK 0 - a\{0,}
Karsten Hopp 3ce479
! OK 1 - a\{0,}
Karsten Hopp 3ce479
! OK 2 - a\{0,}
Karsten Hopp 3ce479
! OK 0 - a\{2,}
Karsten Hopp 3ce479
! OK 1 - a\{2,}
Karsten Hopp 3ce479
! OK 2 - a\{2,}
Karsten Hopp 3ce479
! OK 0 - a\{2,}
Karsten Hopp 3ce479
! OK 1 - a\{2,}
Karsten Hopp 3ce479
! OK 0 - a\{,0}
Karsten Hopp 3ce479
! OK 1 - a\{,0}
Karsten Hopp 3ce479
! OK 2 - a\{,0}
Karsten Hopp 3ce479
! OK 0 - a\{,5}
Karsten Hopp 3ce479
! OK 1 - a\{,5}
Karsten Hopp 3ce479
! OK 2 - a\{,5}
Karsten Hopp 3ce479
! OK 0 - a\{,5}
Karsten Hopp 3ce479
! OK 1 - a\{,5}
Karsten Hopp 3ce479
! OK 2 - a\{,5}
Karsten Hopp 3ce479
! OK 0 - a\{}
Karsten Hopp 3ce479
! OK 1 - a\{}
Karsten Hopp 3ce479
! OK 2 - a\{}
Karsten Hopp 3ce479
! OK 0 - a\{}
Karsten Hopp 3ce479
! OK 1 - a\{}
Karsten Hopp 3ce479
! OK 2 - a\{}
Karsten Hopp 3ce479
! OK 0 - a\{-0,0}
Karsten Hopp 3ce479
! OK 1 - a\{-0,0}
Karsten Hopp 3ce479
! OK 2 - a\{-0,0}
Karsten Hopp 3ce479
! OK 0 - a\{-0,1}
Karsten Hopp 3ce479
! OK 1 - a\{-0,1}
Karsten Hopp 3ce479
! OK 2 - a\{-0,1}
Karsten Hopp 3ce479
! OK 0 - a\{-3,6}
Karsten Hopp 3ce479
! OK 1 - a\{-3,6}
Karsten Hopp 3ce479
! OK 2 - a\{-3,6}
Karsten Hopp 3ce479
! OK 0 - a\{-3,6}
Karsten Hopp 3ce479
! OK 1 - a\{-3,6}
Karsten Hopp 3ce479
! OK 2 - a\{-3,6}
Karsten Hopp 3ce479
! OK 0 - a\{-3,6}
Karsten Hopp 3ce479
! OK 1 - a\{-3,6}
Karsten Hopp 3ce479
! OK 2 - a\{-3,6}
Karsten Hopp 3ce479
! OK 0 - a\{-0}
Karsten Hopp 3ce479
! OK 1 - a\{-0}
Karsten Hopp 3ce479
! OK 2 - a\{-0}
Karsten Hopp 3ce479
! OK 0 - a\{-2}
Karsten Hopp 3ce479
! OK 1 - a\{-2}
Karsten Hopp 3ce479
! OK 2 - a\{-2}
Karsten Hopp 3ce479
! OK 0 - a\{-2}
Karsten Hopp 3ce479
! OK 1 - a\{-2}
Karsten Hopp 3ce479
! OK 2 - a\{-2}
Karsten Hopp 3ce479
! OK 0 - a\{-0,}
Karsten Hopp 3ce479
! OK 1 - a\{-0,}
Karsten Hopp 3ce479
! OK 0 - a\{-0,}
Karsten Hopp 3ce479
! OK 1 - a\{-0,}
Karsten Hopp 3ce479
! OK 0 - a\{-2,}
Karsten Hopp 3ce479
! OK 1 - a\{-2,}
Karsten Hopp 3ce479
! OK 2 - a\{-2,}
Karsten Hopp 3ce479
! OK 0 - a\{-2,}
Karsten Hopp 3ce479
! OK 1 - a\{-2,}
Karsten Hopp 3ce479
! OK 0 - a\{-,0}
Karsten Hopp 3ce479
! OK 1 - a\{-,0}
Karsten Hopp 3ce479
! OK 2 - a\{-,0}
Karsten Hopp 3ce479
! OK 0 - a\{-,5}
Karsten Hopp 3ce479
! OK 1 - a\{-,5}
Karsten Hopp 3ce479
! OK 2 - a\{-,5}
Karsten Hopp 3ce479
! OK 0 - a\{-,5}
Karsten Hopp 3ce479
! OK 1 - a\{-,5}
Karsten Hopp 3ce479
! OK 2 - a\{-,5}
Karsten Hopp 3ce479
! OK 0 - a\{-}
Karsten Hopp 3ce479
! OK 1 - a\{-}
Karsten Hopp 3ce479
! OK 0 - a\{-}
Karsten Hopp 3ce479
! OK 1 - a\{-}
Karsten Hopp 3ce479
! OK 0 - \(abc\)*
Karsten Hopp 3ce479
! OK 1 - \(abc\)*
Karsten Hopp 3ce479
! OK 2 - \(abc\)*
Karsten Hopp 3ce479
! OK 0 - \(ab\)\+
Karsten Hopp 3ce479
! OK 1 - \(ab\)\+
Karsten Hopp 3ce479
! OK 2 - \(ab\)\+
Karsten Hopp 3ce479
! OK 0 - \(abaaaaa\)*cd
Karsten Hopp 3ce479
! OK 1 - \(abaaaaa\)*cd
Karsten Hopp 3ce479
! OK 2 - \(abaaaaa\)*cd
Karsten Hopp 3ce479
! OK 0 - \(test1\)\? \(test2\)\?
Karsten Hopp 3ce479
! OK 1 - \(test1\)\? \(test2\)\?
Karsten Hopp 3ce479
! OK 2 - \(test1\)\? \(test2\)\?
Karsten Hopp 3ce479
! OK 0 - \(test1\)\= \(test2\) \(test4443\)\=
Karsten Hopp 3ce479
! OK 1 - \(test1\)\= \(test2\) \(test4443\)\=
Karsten Hopp 3ce479
! OK 2 - \(test1\)\= \(test2\) \(test4443\)\=
Karsten Hopp 3ce479
! OK 0 - \(\(sub1\) hello \(sub 2\)\)
Karsten Hopp 3ce479
! OK 1 - \(\(sub1\) hello \(sub 2\)\)
Karsten Hopp 3ce479
! OK 2 - \(\(sub1\) hello \(sub 2\)\)
Karsten Hopp 3ce479
! OK 0 - \(\(\(yyxxzz\)\)\)
Karsten Hopp 3ce479
! OK 1 - \(\(\(yyxxzz\)\)\)
Karsten Hopp 3ce479
! OK 2 - \(\(\(yyxxzz\)\)\)
Karsten Hopp 3ce479
! OK 0 - \v((ab)+|c+)+
Karsten Hopp 3ce479
! OK 1 - \v((ab)+|c+)+
Karsten Hopp 3ce479
! OK 2 - \v((ab)+|c+)+
Karsten Hopp 3ce479
! OK 0 - \v((ab)|c*)+
Karsten Hopp 3ce479
! OK 1 - \v((ab)|c*)+
Karsten Hopp 3ce479
! OK 2 - \v((ab)|c*)+
Karsten Hopp 3ce479
! OK 0 - \v(a(c*)+b)+
Karsten Hopp 3ce479
! OK 1 - \v(a(c*)+b)+
Karsten Hopp 3ce479
! OK 2 - \v(a(c*)+b)+
Karsten Hopp 3ce479
! OK 0 - \v(a|b*)+
Karsten Hopp 3ce479
! OK 1 - \v(a|b*)+
Karsten Hopp 3ce479
! OK 2 - \v(a|b*)+
Karsten Hopp 3ce479
! OK 0 - a\{-2,7}
Karsten Hopp 3ce479
! OK 1 - a\{-2,7}
Karsten Hopp 3ce479
! OK 2 - a\{-2,7}
Karsten Hopp 3ce479
! OK 0 - a\{2,7}
Karsten Hopp 3ce479
! OK 1 - a\{2,7}
Karsten Hopp 3ce479
! OK 2 - a\{2,7}
Karsten Hopp 3ce479
! OK 0 - \vx(.{-,8})yz(.*)
Karsten Hopp 3ce479
! OK 1 - \vx(.{-,8})yz(.*)
Karsten Hopp 3ce479
! OK 2 - \vx(.{-,8})yz(.*)
Karsten Hopp 3ce479
! OK 0 - \vx(.*)yz(.*)
Karsten Hopp 3ce479
! OK 1 - \vx(.*)yz(.*)
Karsten Hopp 3ce479
! OK 2 - \vx(.*)yz(.*)
Karsten Hopp 3ce479
! OK 0 - \v(a{1,2}){-2,3}
Karsten Hopp 3ce479
! OK 1 - \v(a{1,2}){-2,3}
Karsten Hopp 3ce479
! OK 2 - \v(a{1,2}){-2,3}
Karsten Hopp 3ce479
! OK 0 - \v(a{-1,3})+
Karsten Hopp 3ce479
! OK 1 - \v(a{-1,3})+
Karsten Hopp 3ce479
! OK 2 - \v(a{-1,3})+
Karsten Hopp 3ce479
! OK 0 - \d\+e\d\d
Karsten Hopp 3ce479
! OK 1 - \d\+e\d\d
Karsten Hopp 3ce479
! OK 2 - \d\+e\d\d
Karsten Hopp 3ce479
! OK 0 - \v[a]
Karsten Hopp 3ce479
! OK 1 - \v[a]
Karsten Hopp 3ce479
! OK 2 - \v[a]
Karsten Hopp 3ce479
! OK 0 - a[bcd]
Karsten Hopp 3ce479
! OK 1 - a[bcd]
Karsten Hopp 3ce479
! OK 2 - a[bcd]
Karsten Hopp 3ce479
! OK 0 - a[b-d]
Karsten Hopp 3ce479
! OK 1 - a[b-d]
Karsten Hopp 3ce479
! OK 2 - a[b-d]
Karsten Hopp 3ce479
! OK 0 - [a-d][e-f][x-x]d
Karsten Hopp 3ce479
! OK 1 - [a-d][e-f][x-x]d
Karsten Hopp 3ce479
! OK 2 - [a-d][e-f][x-x]d
Karsten Hopp 3ce479
! OK 0 - \v[[:alpha:]]+
Karsten Hopp 3ce479
! OK 1 - \v[[:alpha:]]+
Karsten Hopp 3ce479
! OK 2 - \v[[:alpha:]]+
Karsten Hopp 3ce479
! OK 0 - [[:alpha:]\+]
Karsten Hopp 3ce479
! OK 1 - [[:alpha:]\+]
Karsten Hopp 3ce479
! OK 2 - [[:alpha:]\+]
Karsten Hopp 3ce479
! OK 0 - [^abc]\+
Karsten Hopp 3ce479
! OK 1 - [^abc]\+
Karsten Hopp 3ce479
! OK 2 - [^abc]\+
Karsten Hopp 3ce479
! OK 0 - [^abc]
Karsten Hopp 3ce479
! OK 1 - [^abc]
Karsten Hopp 3ce479
! OK 2 - [^abc]
Karsten Hopp 3ce479
! OK 0 - [^abc]\+
Karsten Hopp 3ce479
! OK 1 - [^abc]\+
Karsten Hopp 3ce479
! OK 2 - [^abc]\+
Karsten Hopp 3ce479
! OK 0 - [^a-d]\+
Karsten Hopp 3ce479
! OK 1 - [^a-d]\+
Karsten Hopp 3ce479
! OK 2 - [^a-d]\+
Karsten Hopp 3ce479
! OK 0 - [a-f]*
Karsten Hopp 3ce479
! OK 1 - [a-f]*
Karsten Hopp 3ce479
! OK 2 - [a-f]*
Karsten Hopp 3ce479
! OK 0 - [a-f]*
Karsten Hopp 3ce479
! OK 1 - [a-f]*
Karsten Hopp 3ce479
! OK 2 - [a-f]*
Karsten Hopp 3ce479
! OK 0 - [^a-f]\+
Karsten Hopp 3ce479
! OK 1 - [^a-f]\+
Karsten Hopp 3ce479
! OK 2 - [^a-f]\+
Karsten Hopp 3ce479
! OK 0 - [a-c]\{-3,6}
Karsten Hopp 3ce479
! OK 1 - [a-c]\{-3,6}
Karsten Hopp 3ce479
! OK 2 - [a-c]\{-3,6}
Karsten Hopp 3ce479
! OK 0 - [^[:alpha:]]\+
Karsten Hopp 3ce479
! OK 1 - [^[:alpha:]]\+
Karsten Hopp 3ce479
! OK 2 - [^[:alpha:]]\+
Karsten Hopp 3ce479
! OK 0 - [-a]
Karsten Hopp 3ce479
! OK 1 - [-a]
Karsten Hopp 3ce479
! OK 2 - [-a]
Karsten Hopp 3ce479
! OK 0 - [a-]
Karsten Hopp 3ce479
! OK 1 - [a-]
Karsten Hopp 3ce479
! OK 2 - [a-]
Karsten Hopp 3ce479
! OK 0 - [-./[:alnum:]_~]\+
Karsten Hopp 3ce479
! OK 1 - [-./[:alnum:]_~]\+
Karsten Hopp 3ce479
! OK 2 - [-./[:alnum:]_~]\+
Karsten Hopp 3ce479
! OK 0 - [\]\^\-\\]\+
Karsten Hopp 3ce479
! OK 1 - [\]\^\-\\]\+
Karsten Hopp 3ce479
! OK 2 - [\]\^\-\\]\+
Karsten Hopp 3ce479
! OK 0 - [[.a.]]\+
Karsten Hopp 3ce479
! OK 1 - [[.a.]]\+
Karsten Hopp 3ce479
! OK 2 - [[.a.]]\+
Karsten Hopp 3ce479
! OK 0 - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK 1 - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK 2 - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK 0 - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK 1 - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK 2 - abc[0-9]*ddd
Karsten Hopp 3ce479
! OK 0 - \_[0-9]\+
Karsten Hopp 3ce479
! OK 1 - \_[0-9]\+
Karsten Hopp 3ce479
! OK 2 - \_[0-9]\+
Karsten Hopp 3ce479
! OK 0 - [0-9\n]\+
Karsten Hopp 3ce479
! OK 1 - [0-9\n]\+
Karsten Hopp 3ce479
! OK 2 - [0-9\n]\+
Karsten Hopp 3ce479
! OK 0 - [0-9]
Karsten Hopp 3ce479
! OK 1 - [0-9]
Karsten Hopp 3ce479
! OK 2 - [0-9]
Karsten Hopp 3ce479
! OK 0 - [^0-9]
Karsten Hopp 3ce479
! OK 1 - [^0-9]
Karsten Hopp 3ce479
! OK 2 - [^0-9]
Karsten Hopp 3ce479
! OK 0 - [0-9a-fA-F]*
Karsten Hopp 3ce479
! OK 1 - [0-9a-fA-F]*
Karsten Hopp 3ce479
! OK 2 - [0-9a-fA-F]*
Karsten Hopp 3ce479
! OK 0 - [^0-9A-Fa-f]\+
Karsten Hopp 3ce479
! OK 1 - [^0-9A-Fa-f]\+
Karsten Hopp 3ce479
! OK 2 - [^0-9A-Fa-f]\+
Karsten Hopp 3ce479
! OK 0 - [a-z_A-Z0-9]\+
Karsten Hopp 3ce479
! OK 1 - [a-z_A-Z0-9]\+
Karsten Hopp 3ce479
! OK 2 - [a-z_A-Z0-9]\+
Karsten Hopp 3ce479
! OK 0 - [a-z]
Karsten Hopp 3ce479
! OK 1 - [a-z]
Karsten Hopp 3ce479
! OK 2 - [a-z]
Karsten Hopp 3ce479
! OK 0 - [a-zA-Z]
Karsten Hopp 3ce479
! OK 1 - [a-zA-Z]
Karsten Hopp 3ce479
! OK 2 - [a-zA-Z]
Karsten Hopp 3ce479
! OK 0 - [A-Z]
Karsten Hopp 3ce479
! OK 1 - [A-Z]
Karsten Hopp 3ce479
! OK 2 - [A-Z]
Karsten Hopp 3ce479
! OK 0 - \C[^A-Z]\+
Karsten Hopp 3ce479
! OK 1 - \C[^A-Z]\+
Karsten Hopp 3ce479
! OK 2 - \C[^A-Z]\+
Karsten Hopp 3ce479
! OK 0 - xx \ze test
Karsten Hopp 3ce479
! OK 1 - xx \ze test
Karsten Hopp 3ce479
! OK 2 - xx \ze test
Karsten Hopp 3ce479
! OK 0 - abc\zeend
Karsten Hopp 3ce479
! OK 1 - abc\zeend
Karsten Hopp 3ce479
! OK 0 - abc\zsdd
Karsten Hopp 3ce479
! OK 1 - abc\zsdd
Karsten Hopp 3ce479
! OK 2 - abc\zsdd
Karsten Hopp 3ce479
! OK 0 - aa \zsax
Karsten Hopp 3ce479
! OK 1 - aa \zsax
Karsten Hopp 3ce479
! OK 2 - aa \zsax
Karsten Hopp 3ce479
! OK 0 - abc \zsmatch\ze abc
Karsten Hopp 3ce479
! OK 1 - abc \zsmatch\ze abc
Karsten Hopp 3ce479
! OK 0 - \v(a \zsif .*){2}
Karsten Hopp 3ce479
! OK 1 - \v(a \zsif .*){2}
Karsten Hopp 3ce479
! OK 2 - \v(a \zsif .*){2}
Karsten Hopp 3ce479
! OK 0 - \>\zs.
Karsten Hopp 3ce479
! OK 1 - \>\zs.
Karsten Hopp 3ce479
! OK 2 - \>\zs.
Karsten Hopp 3ce479
! OK 0 - abc\@=
Karsten Hopp 3ce479
! OK 1 - abc\@=
Karsten Hopp 3ce479
! OK 0 - abc\@=cd
Karsten Hopp 3ce479
! OK 1 - abc\@=cd
Karsten Hopp 3ce479
! OK 0 - abc\@=
Karsten Hopp 3ce479
! OK 1 - abc\@=
Karsten Hopp 3ce479
! OK 0 - abcd\@=e
Karsten Hopp 3ce479
! OK 1 - abcd\@=e
Karsten Hopp 3ce479
! OK 2 - abcd\@=e
Karsten Hopp 3ce479
! OK 0 - abcd\@=e
Karsten Hopp 3ce479
! OK 1 - abcd\@=e
Karsten Hopp 3ce479
! OK 2 - abcd\@=e
Karsten Hopp 3ce479
! OK 0 - \v(abc)@=..
Karsten Hopp 3ce479
! OK 1 - \v(abc)@=..
Karsten Hopp 3ce479
! OK 0 - \(.*John\)\@=.*Bob
Karsten Hopp 3ce479
! OK 1 - \(.*John\)\@=.*Bob
Karsten Hopp 3ce479
! OK 2 - \(.*John\)\@=.*Bob
Karsten Hopp 3ce479
! OK 0 - \(John.*\)\@=.*Bob
Karsten Hopp 3ce479
! OK 1 - \(John.*\)\@=.*Bob
Karsten Hopp 3ce479
! OK 0 - .*John\&.*Bob
Karsten Hopp 3ce479
! OK 1 - .*John\&.*Bob
Karsten Hopp 3ce479
! OK 2 - .*John\&.*Bob
Karsten Hopp 3ce479
! OK 0 - .*John\&.*Bob
Karsten Hopp 3ce479
! OK 1 - .*John\&.*Bob
Karsten Hopp 3ce479
! OK 0 - \v(test1)@=.*yep
Karsten Hopp 3ce479
! OK 1 - \v(test1)@=.*yep
Karsten Hopp 3ce479
! OK 0 - [[:alpha:]]\{-2,6}
Karsten Hopp 3ce479
! OK 1 - [[:alpha:]]\{-2,6}
Karsten Hopp 3ce479
! OK 2 - [[:alpha:]]\{-2,6}
Karsten Hopp 3ce479
! OK 0 - 
Karsten Hopp 3ce479
! OK 1 - 
Karsten Hopp 3ce479
! OK 2 - 
Karsten Hopp 3ce479
! OK 0 - \v(())
Karsten Hopp 3ce479
! OK 1 - \v(())
Karsten Hopp 3ce479
! OK 2 - \v(())
Karsten Hopp 3ce479
! OK 0 - \v%(ab(xyz)c)
Karsten Hopp 3ce479
! OK 1 - \v%(ab(xyz)c)
Karsten Hopp 3ce479
! OK 2 - \v%(ab(xyz)c)
Karsten Hopp 3ce479
! OK 0 - \v(test|)empty
Karsten Hopp 3ce479
! OK 1 - \v(test|)empty
Karsten Hopp 3ce479
! OK 2 - \v(test|)empty
Karsten Hopp 3ce479
! OK 0 - \v(a|aa)(a|aa)
Karsten Hopp 3ce479
! OK 1 - \v(a|aa)(a|aa)
Karsten Hopp 3ce479
! OK 2 - \v(a|aa)(a|aa)
Karsten Hopp 3ce479
! OK 0 - \%d32
Karsten Hopp 3ce479
! OK 1 - \%d32
Karsten Hopp 3ce479
! OK 2 - \%d32
Karsten Hopp 3ce479
! OK 0 - \%o40
Karsten Hopp 3ce479
! OK 1 - \%o40
Karsten Hopp 3ce479
! OK 2 - \%o40
Karsten Hopp 3ce479
! OK 0 - \%x20
Karsten Hopp 3ce479
! OK 1 - \%x20
Karsten Hopp 3ce479
! OK 2 - \%x20
Karsten Hopp 3ce479
! OK 0 - \%u0020
Karsten Hopp 3ce479
! OK 1 - \%u0020
Karsten Hopp 3ce479
! OK 2 - \%u0020
Karsten Hopp 3ce479
! OK 0 - \%U00000020
Karsten Hopp 3ce479
! OK 1 - \%U00000020
Karsten Hopp 3ce479
! OK 2 - \%U00000020
Karsten Hopp 3ce479
! OK 0 - goo\|go
Karsten Hopp 3ce479
! OK 1 - goo\|go
Karsten Hopp 3ce479
! OK 2 - goo\|go
Karsten Hopp 3ce479
! OK 0 - \
Karsten Hopp 3ce479
! OK 1 - \
Karsten Hopp 3ce479
! OK 2 - \
Karsten Hopp 3ce479
! OK 0 - \
Karsten Hopp 3ce479
! OK 1 - \
Karsten Hopp 3ce479
! OK 2 - \
Karsten Hopp 3ce479
! 192.168.0.1
Karsten Hopp 3ce479
! 192.168.0.1
Karsten Hopp 3ce479
  192.168.0.1
Karsten Hopp 3ce479
*** ../vim-7.3.1019/src/testdir/test95.in	2013-05-25 14:41:58.000000000 +0200
Karsten Hopp 3ce479
--- src/testdir/test95.in	2013-05-25 23:06:00.000000000 +0200
Karsten Hopp 3ce479
***************
Karsten Hopp 3ce479
*** 20,98 ****
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Multi-byte character tests. These will fail unless vim is compiled
Karsten Hopp 3ce479
  :"""" with Multibyte (FEAT_MBYTE) or BIG/HUGE features.
Karsten Hopp 3ce479
! :call add(tl, ['[[:alpha:][=a=]]\+', '879 aiaãâaiuvna ', 'aiaãâaiuvna'])
Karsten Hopp 3ce479
! :call add(tl, ['[[=a=]]\+', 'ddaãâbcd', 'aãâ'])								" equivalence classes
Karsten Hopp 3ce479
! :call add(tl, ['[^ม ]\+', 'มม oijasoifjos ifjoisj f osij j มมมมม abcd', 'oijasoifjos'])
Karsten Hopp 3ce479
! :call add(tl, [' [^ ]\+', 'start มabcdม ', ' มabcdม'])
Karsten Hopp 3ce479
! :call add(tl, ['[ม[:alpha:][=a=]]\+', '879 aiaãมâมaiuvna ', 'aiaãมâมaiuvna'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" this is not a normal "i" but 0xec
Karsten Hopp 3ce479
! :call add(tl, ['\p\+', 'ìa', 'ìa'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test recognition of some character classes
Karsten Hopp 3ce479
! :call add(tl, ['\i\+', '&*¨xx ', 'xx'])
Karsten Hopp 3ce479
! :call add(tl, ['\%#=1\i\+', '&*¨xx ', 'xx'])
Karsten Hopp 3ce479
! :call add(tl, ['\f\+', '&*Ÿfname ', 'fname'])
Karsten Hopp 3ce479
! :call add(tl, ['\%#=1\f\+', '&*Ÿfname ', 'fname'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test composing character matching
Karsten Hopp 3ce479
! :call add(tl, ['.ม', 'xม่x yมy', 'yม'])
Karsten Hopp 3ce479
! :call add(tl, ['.ม่', 'xม่x yมy', 'xม่'])
Karsten Hopp 3ce479
! :call add(tl, ["\u05b9", " x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
! :call add(tl, [".\u05b9", " x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
! :call add(tl, ["\u05b9\u05bb", " x\u05b9\u05bb ", "x\u05b9\u05bb"])
Karsten Hopp 3ce479
! :call add(tl, [".\u05b9\u05bb", " x\u05b9\u05bb ", "x\u05b9\u05bb"])
Karsten Hopp 3ce479
! :call add(tl, ["\u05bb\u05b9", " x\u05b9\u05bb "])
Karsten Hopp 3ce479
! :call add(tl, [".\u05bb\u05b9", " x\u05b9\u05bb "])
Karsten Hopp 3ce479
! :call add(tl, ["\u05b9", " y\u05bb x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
! :call add(tl, [".\u05b9", " y\u05bb x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test \Z
Karsten Hopp 3ce479
! :call add(tl, ['ú\Z', 'x'])
Karsten Hopp 3ce479
! :call add(tl, ['יהוה\Z', 'יהוה', 'יהוה'])
Karsten Hopp 3ce479
! :call add(tl, ['יְהוָה\Z', 'יהוה', 'יהוה'])
Karsten Hopp 3ce479
! :call add(tl, ['יהוה\Z', 'יְהוָה', 'יְהוָה'])
Karsten Hopp 3ce479
! :call add(tl, ['יְהוָה\Z', 'יְהוָה', 'יְהוָה'])
Karsten Hopp 3ce479
! :call add(tl, ['יְ\Z', 'וְיַ', 'יַ'])
Karsten Hopp 3ce479
! :call add(tl, ["ק\u200d\u05b9x\\Z", "xק\u200d\u05b9xy", "ק\u200d\u05b9x"])
Karsten Hopp 3ce479
! :call add(tl, ["ק\u200d\u05b9x\\Z", "xק\u200dxy", "ק\u200dx"])
Karsten Hopp 3ce479
! :call add(tl, ["ק\u200dx\\Z", "xק\u200d\u05b9xy", "ק\u200d\u05b9x"])
Karsten Hopp 3ce479
! :call add(tl, ["ק\u200dx\\Z", "xק\u200dxy", "ק\u200dx"])
Karsten Hopp 3ce479
! :call add(tl, ["\u05b9\\+\\Z", "xyz", "xyz"])
Karsten Hopp 3ce479
! :call add(tl, ["\\Z\u05b9\\+", "xyz", "xyz"])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Combining different tests and features
Karsten Hopp 3ce479
! :call add(tl, ['[^[=a=]]\+', 'ddaãâbcd', 'dd'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Run the tests
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :for t in tl
Karsten Hopp 3ce479
! :  let l = matchlist(t[1], t[0])
Karsten Hopp 3ce479
  :" check the match itself
Karsten Hopp 3ce479
! :  if len(l) == 0 && len(t) > 2
Karsten Hopp 3ce479
! :    $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", did not match, expected: \"' . t[2] . '\"'
Karsten Hopp 3ce479
! :  elseif len(l) > 0 && len(t) == 2
Karsten Hopp 3ce479
! :    $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected no match'
Karsten Hopp 3ce479
! :  elseif len(t) > 2 && l[0] != t[2]
Karsten Hopp 3ce479
! :    $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", match: \"' . l[0] . '\", expected: \"' . t[2] . '\"'
Karsten Hopp 3ce479
! :  else
Karsten Hopp 3ce479
! :    $put ='OK - ' . t[0]
Karsten Hopp 3ce479
! :  endif
Karsten Hopp 3ce479
! :  if len(l) > 0
Karsten Hopp 3ce479
  :"   check all the nine submatches
Karsten Hopp 3ce479
! :    for i in range(1, 9)
Karsten Hopp 3ce479
! :      if len(t) <= i + 2
Karsten Hopp 3ce479
! :        let e = ''
Karsten Hopp 3ce479
! :      else
Karsten Hopp 3ce479
! :        let e = t[i + 2]
Karsten Hopp 3ce479
! :      endif
Karsten Hopp 3ce479
! :      if l[i] != e
Karsten Hopp 3ce479
! :        $put ='ERROR: pat: \"' . t[0] . '\", text: \"' . t[1] . '\", submatch ' . i . ': \"' . l[i] . '\", expected: \"' . e . '\"'
Karsten Hopp 3ce479
! :      endif
Karsten Hopp 3ce479
! :    endfor
Karsten Hopp 3ce479
! :    unlet i
Karsten Hopp 3ce479
! :  endif
Karsten Hopp 3ce479
  :endfor
Karsten Hopp 3ce479
  :unlet t tl e l
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
--- 20,109 ----
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Multi-byte character tests. These will fail unless vim is compiled
Karsten Hopp 3ce479
  :"""" with Multibyte (FEAT_MBYTE) or BIG/HUGE features.
Karsten Hopp 3ce479
! :call add(tl, [2, '[[:alpha:][=a=]]\+', '879 aiaãâaiuvna ', 'aiaãâaiuvna'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[[=a=]]\+', 'ddaãâbcd', 'aãâ'])								" equivalence classes
Karsten Hopp 3ce479
! :call add(tl, [2, '[^ม ]\+', 'มม oijasoifjos ifjoisj f osij j มมมมม abcd', 'oijasoifjos'])
Karsten Hopp 3ce479
! :call add(tl, [2, ' [^ ]\+', 'start มabcdม ', ' มabcdม'])
Karsten Hopp 3ce479
! :call add(tl, [2, '[ม[:alpha:][=a=]]\+', '879 aiaãมâมaiuvna ', 'aiaãมâมaiuvna'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :" this is not a normal "i" but 0xec
Karsten Hopp 3ce479
! :call add(tl, [2, '\p\+', 'ìa', 'ìa'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test recognition of some character classes
Karsten Hopp 3ce479
! :call add(tl, [2, '\i\+', '&*¨xx ', 'xx'])
Karsten Hopp 3ce479
! :call add(tl, [2, '\f\+', '&*Ÿfname ', 'fname'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test composing character matching
Karsten Hopp 3ce479
! :call add(tl, [2, '.ม', 'xม่x yมy', 'yม'])
Karsten Hopp 3ce479
! :call add(tl, [2, '.ม่', 'xม่x yมy', 'xม่'])
Karsten Hopp 3ce479
! :call add(tl, [2, "\u05b9", " x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
! :call add(tl, [2, ".\u05b9", " x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
! :call add(tl, [2, "\u05b9\u05bb", " x\u05b9\u05bb ", "x\u05b9\u05bb"])
Karsten Hopp 3ce479
! :call add(tl, [2, ".\u05b9\u05bb", " x\u05b9\u05bb ", "x\u05b9\u05bb"])
Karsten Hopp 3ce479
! :"call add(tl, [2, "\u05bb\u05b9", " x\u05b9\u05bb "])
Karsten Hopp 3ce479
! :"call add(tl, [2, ".\u05bb\u05b9", " x\u05b9\u05bb "])
Karsten Hopp 3ce479
! :call add(tl, [2, "\u05b9", " y\u05bb x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
! :call add(tl, [2, ".\u05b9", " y\u05bb x\u05b9 ", "x\u05b9"])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Test \Z
Karsten Hopp 3ce479
! :call add(tl, [2, 'ú\Z', 'x'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'יהוה\Z', 'יהוה', 'יהוה'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'יְהוָה\Z', 'יהוה', 'יהוה'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'יהוה\Z', 'יְהוָה', 'יְהוָה'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'יְהוָה\Z', 'יְהוָה', 'יְהוָה'])
Karsten Hopp 3ce479
! :call add(tl, [2, 'יְ\Z', 'וְיַ', 'יַ'])
Karsten Hopp 3ce479
! :call add(tl, [2, "ק\u200d\u05b9x\\Z", "xק\u200d\u05b9xy", "ק\u200d\u05b9x"])
Karsten Hopp 3ce479
! :call add(tl, [2, "ק\u200d\u05b9x\\Z", "xק\u200dxy", "ק\u200dx"])
Karsten Hopp 3ce479
! :call add(tl, [2, "ק\u200dx\\Z", "xק\u200d\u05b9xy", "ק\u200d\u05b9x"])
Karsten Hopp 3ce479
! :call add(tl, [2, "ק\u200dx\\Z", "xק\u200dxy", "ק\u200dx"])
Karsten Hopp 3ce479
! :"call add(tl, [2, "\u05b9\\Z", "xyz"])
Karsten Hopp 3ce479
! :"call add(tl, [2, "\\Z\u05b9", "xyz"])
Karsten Hopp 3ce479
! :"call add(tl, [2, "\u05b9\\+\\Z", "xyz", "xyz"])
Karsten Hopp 3ce479
! :"call add(tl, [2, "\\Z\u05b9\\+", "xyz", "xyz"])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Combining different tests and features
Karsten Hopp 3ce479
! :call add(tl, [2, '[^[=a=]]\+', 'ddaãâbcd', 'dd'])
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
  :"""" Run the tests
Karsten Hopp 3ce479
+ 
Karsten Hopp 3ce479
  :"
Karsten Hopp 3ce479
  :for t in tl
Karsten Hopp 3ce479
! :  let re = t[0]
Karsten Hopp 3ce479
! :  let pat = t[1]
Karsten Hopp 3ce479
! :  let text = t[2]
Karsten Hopp 3ce479
! :  let matchidx = 3
Karsten Hopp 3ce479
! :  for engine in [0, 1, 2]
Karsten Hopp 3ce479
! :    if engine == 2 && !re
Karsten Hopp 3ce479
! :      continue
Karsten Hopp 3ce479
! :    endif
Karsten Hopp 3ce479
! :    let &regexpengine = engine
Karsten Hopp 3ce479
! :    let l = matchlist(text, pat)
Karsten Hopp 3ce479
  :" check the match itself
Karsten Hopp 3ce479
! :    if len(l) == 0 && len(t) > matchidx
Karsten Hopp 3ce479
! :      $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", did not match, expected: \"' . t[matchidx] . '\"'
Karsten Hopp 3ce479
! :    elseif len(l) > 0 && len(t) == matchidx
Karsten Hopp 3ce479
! :      $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", match: \"' . l[0] . '\", expected no match'
Karsten Hopp 3ce479
! :    elseif len(t) > matchidx && l[0] != t[matchidx]
Karsten Hopp 3ce479
! :      $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", match: \"' . l[0] . '\", expected: \"' . t[matchidx] . '\"'
Karsten Hopp 3ce479
! :    else
Karsten Hopp 3ce479
! :      $put ='OK ' . engine . ' - ' . pat
Karsten Hopp 3ce479
! :    endif
Karsten Hopp 3ce479
! :    if len(l) > 0
Karsten Hopp 3ce479
  :"   check all the nine submatches
Karsten Hopp 3ce479
! :      for i in range(1, 9)
Karsten Hopp 3ce479
! :        if len(t) <= matchidx + i
Karsten Hopp 3ce479
! :          let e = ''
Karsten Hopp 3ce479
! :        else
Karsten Hopp 3ce479
! :          let e = t[matchidx + i]
Karsten Hopp 3ce479
! :        endif
Karsten Hopp 3ce479
! :        if l[i] != e
Karsten Hopp 3ce479
! :          $put ='ERROR: pat: \"' . pat . '\", text: \"' . text . '\", submatch ' . i . ': \"' . l[i] . '\", expected: \"' . e . '\"'
Karsten Hopp 3ce479
! :        endif
Karsten Hopp 3ce479
! :      endfor
Karsten Hopp 3ce479
! :      unlet i
Karsten Hopp 3ce479
! :    endif
Karsten Hopp 3ce479
! :  endfor
Karsten Hopp 3ce479
  :endfor
Karsten Hopp 3ce479
  :unlet t tl e l
Karsten Hopp 3ce479
  
Karsten Hopp 3ce479
*** ../vim-7.3.1019/src/testdir/test95.ok	2013-05-25 14:41:58.000000000 +0200
Karsten Hopp 3ce479
--- src/testdir/test95.ok	2013-05-25 23:06:26.000000000 +0200
Karsten Hopp 3ce479
***************
Karsten Hopp 3ce479
*** 1,34 ****
Karsten Hopp 3ce479
  Results of test95:
Karsten Hopp 3ce479
! OK - [[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK - [[=a=]]\+
Karsten Hopp 3ce479
! OK - [^ม ]\+
Karsten Hopp 3ce479
! OK -  [^ ]\+
Karsten Hopp 3ce479
! OK - [ม[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK - \p\+
Karsten Hopp 3ce479
! OK - \i\+
Karsten Hopp 3ce479
! OK - \%#=1\i\+
Karsten Hopp 3ce479
! OK - \f\+
Karsten Hopp 3ce479
! OK - \%#=1\f\+
Karsten Hopp 3ce479
! OK - .ม
Karsten Hopp 3ce479
! OK - .ม่
Karsten Hopp 3ce479
! OK - Ö¹
Karsten Hopp 3ce479
! OK - .Ö¹
Karsten Hopp 3ce479
! OK - Ö¹Ö»
Karsten Hopp 3ce479
! OK - .Ö¹Ö»
Karsten Hopp 3ce479
! OK - Ö»Ö¹
Karsten Hopp 3ce479
! OK - .Ö»Ö¹
Karsten Hopp 3ce479
! OK - Ö¹
Karsten Hopp 3ce479
! OK - .Ö¹
Karsten Hopp 3ce479
! OK - ú\Z
Karsten Hopp 3ce479
! OK - יהוה\Z
Karsten Hopp 3ce479
! OK - יְהוָה\Z
Karsten Hopp 3ce479
! OK - יהוה\Z
Karsten Hopp 3ce479
! OK - יְהוָה\Z
Karsten Hopp 3ce479
! OK - יְ\Z
Karsten Hopp 3ce479
! OK - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK - ק‍x\Z
Karsten Hopp 3ce479
! OK - ק‍x\Z
Karsten Hopp 3ce479
! OK - Ö¹\+\Z
Karsten Hopp 3ce479
! OK - \ZÖ¹\+
Karsten Hopp 3ce479
! OK - [^[=a=]]\+
Karsten Hopp 3ce479
--- 1,82 ----
Karsten Hopp 3ce479
  Results of test95:
Karsten Hopp 3ce479
! OK 0 - [[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK 1 - [[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK 2 - [[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK 0 - [[=a=]]\+
Karsten Hopp 3ce479
! OK 1 - [[=a=]]\+
Karsten Hopp 3ce479
! OK 2 - [[=a=]]\+
Karsten Hopp 3ce479
! OK 0 - [^ม ]\+
Karsten Hopp 3ce479
! OK 1 - [^ม ]\+
Karsten Hopp 3ce479
! OK 2 - [^ม ]\+
Karsten Hopp 3ce479
! OK 0 -  [^ ]\+
Karsten Hopp 3ce479
! OK 1 -  [^ ]\+
Karsten Hopp 3ce479
! OK 2 -  [^ ]\+
Karsten Hopp 3ce479
! OK 0 - [ม[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK 1 - [ม[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK 2 - [ม[:alpha:][=a=]]\+
Karsten Hopp 3ce479
! OK 0 - \p\+
Karsten Hopp 3ce479
! OK 1 - \p\+
Karsten Hopp 3ce479
! OK 2 - \p\+
Karsten Hopp 3ce479
! OK 0 - \i\+
Karsten Hopp 3ce479
! OK 1 - \i\+
Karsten Hopp 3ce479
! OK 2 - \i\+
Karsten Hopp 3ce479
! OK 0 - \f\+
Karsten Hopp 3ce479
! OK 1 - \f\+
Karsten Hopp 3ce479
! OK 2 - \f\+
Karsten Hopp 3ce479
! OK 0 - .ม
Karsten Hopp 3ce479
! OK 1 - .ม
Karsten Hopp 3ce479
! OK 2 - .ม
Karsten Hopp 3ce479
! OK 0 - .ม่
Karsten Hopp 3ce479
! OK 1 - .ม่
Karsten Hopp 3ce479
! OK 2 - .ม่
Karsten Hopp 3ce479
! OK 0 - Ö¹
Karsten Hopp 3ce479
! OK 1 - Ö¹
Karsten Hopp 3ce479
! OK 2 - Ö¹
Karsten Hopp 3ce479
! OK 0 - .Ö¹
Karsten Hopp 3ce479
! OK 1 - .Ö¹
Karsten Hopp 3ce479
! OK 2 - .Ö¹
Karsten Hopp 3ce479
! OK 0 - Ö¹Ö»
Karsten Hopp 3ce479
! OK 1 - Ö¹Ö»
Karsten Hopp 3ce479
! OK 2 - Ö¹Ö»
Karsten Hopp 3ce479
! OK 0 - .Ö¹Ö»
Karsten Hopp 3ce479
! OK 1 - .Ö¹Ö»
Karsten Hopp 3ce479
! OK 2 - .Ö¹Ö»
Karsten Hopp 3ce479
! OK 0 - Ö¹
Karsten Hopp 3ce479
! OK 1 - Ö¹
Karsten Hopp 3ce479
! OK 2 - Ö¹
Karsten Hopp 3ce479
! OK 0 - .Ö¹
Karsten Hopp 3ce479
! OK 1 - .Ö¹
Karsten Hopp 3ce479
! OK 2 - .Ö¹
Karsten Hopp 3ce479
! OK 0 - ú\Z
Karsten Hopp 3ce479
! OK 1 - ú\Z
Karsten Hopp 3ce479
! OK 2 - ú\Z
Karsten Hopp 3ce479
! OK 0 - יהוה\Z
Karsten Hopp 3ce479
! OK 1 - יהוה\Z
Karsten Hopp 3ce479
! OK 2 - יהוה\Z
Karsten Hopp 3ce479
! OK 0 - יְהוָה\Z
Karsten Hopp 3ce479
! OK 1 - יְהוָה\Z
Karsten Hopp 3ce479
! OK 2 - יְהוָה\Z
Karsten Hopp 3ce479
! OK 0 - יהוה\Z
Karsten Hopp 3ce479
! OK 1 - יהוה\Z
Karsten Hopp 3ce479
! OK 2 - יהוה\Z
Karsten Hopp 3ce479
! OK 0 - יְהוָה\Z
Karsten Hopp 3ce479
! OK 1 - יְהוָה\Z
Karsten Hopp 3ce479
! OK 2 - יְהוָה\Z
Karsten Hopp 3ce479
! OK 0 - יְ\Z
Karsten Hopp 3ce479
! OK 1 - יְ\Z
Karsten Hopp 3ce479
! OK 2 - יְ\Z
Karsten Hopp 3ce479
! OK 0 - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK 1 - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK 2 - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK 0 - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK 1 - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK 2 - ק‍ֹx\Z
Karsten Hopp 3ce479
! OK 0 - ק‍x\Z
Karsten Hopp 3ce479
! OK 1 - ק‍x\Z
Karsten Hopp 3ce479
! OK 2 - ק‍x\Z
Karsten Hopp 3ce479
! OK 0 - ק‍x\Z
Karsten Hopp 3ce479
! OK 1 - ק‍x\Z
Karsten Hopp 3ce479
! OK 2 - ק‍x\Z
Karsten Hopp 3ce479
! OK 0 - [^[=a=]]\+
Karsten Hopp 3ce479
! OK 1 - [^[=a=]]\+
Karsten Hopp 3ce479
! OK 2 - [^[=a=]]\+
Karsten Hopp 3ce479
*** ../vim-7.3.1019/src/version.c	2013-05-25 22:04:19.000000000 +0200
Karsten Hopp 3ce479
--- src/version.c	2013-05-25 23:10:16.000000000 +0200
Karsten Hopp 3ce479
***************
Karsten Hopp 3ce479
*** 730,731 ****
Karsten Hopp 3ce479
--- 730,733 ----
Karsten Hopp 3ce479
  {   /* Add new patch number below this line */
Karsten Hopp 3ce479
+ /**/
Karsten Hopp 3ce479
+     1020,
Karsten Hopp 3ce479
  /**/
Karsten Hopp 3ce479
Karsten Hopp 3ce479
-- 
Karsten Hopp 3ce479
Engineers will go without food and hygiene for days to solve a problem.
Karsten Hopp 3ce479
(Other times just because they forgot.)
Karsten Hopp 3ce479
				(Scott Adams - The Dilbert principle)
Karsten Hopp 3ce479
Karsten Hopp 3ce479
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 3ce479
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 3ce479
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 3ce479
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///