Mercurial > vim
comparison src/testdir/test95.in @ 4525:36ddcf4cecbc v7.3.1010
updated for version 7.3.1010
Problem: New regexp: adding \Z makes every character match.
Solution: Only apply ireg_icombine for composing characters.
Alsl add missing change from patch 1008. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 24 May 2013 20:25:33 +0200 |
parents | 8cb14f59a327 |
children | 55bcaa1d2749 |
comparison
equal
deleted
inserted
replaced
4524:a67980284cba | 4525:36ddcf4cecbc |
---|---|
5 actually tried. | 5 actually tried. |
6 | 6 |
7 STARTTEST | 7 STARTTEST |
8 :so small.vim | 8 :so small.vim |
9 :so mbyte.vim | 9 :so mbyte.vim |
10 :set nocp encoding=utf-8 viminfo+=nviminfo | 10 :set nocp encoding=utf-8 viminfo+=nviminfo nomore |
11 :" tl is a List of Lists with: | 11 :" tl is a List of Lists with: |
12 :" regexp pattern | 12 :" regexp pattern |
13 :" text to test the pattern on | 13 :" text to test the pattern on |
14 :" expected match (optional) | 14 :" expected match (optional) |
15 :" expected submatch 1 (optional) | 15 :" expected submatch 1 (optional) |
33 :call add(tl, ['\i\+', '&*¨xx ', 'xx']) | 33 :call add(tl, ['\i\+', '&*¨xx ', 'xx']) |
34 :call add(tl, ['\%#=1\i\+', '&*¨xx ', 'xx']) | 34 :call add(tl, ['\%#=1\i\+', '&*¨xx ', 'xx']) |
35 :call add(tl, ['\f\+', '&*fname ', 'fname']) | 35 :call add(tl, ['\f\+', '&*fname ', 'fname']) |
36 :call add(tl, ['\%#=1\f\+', '&*fname ', 'fname']) | 36 :call add(tl, ['\%#=1\f\+', '&*fname ', 'fname']) |
37 | 37 |
38 :"""" Test \Z | |
39 :call add(tl, ['ú\Z', 'x']) | |
40 | |
38 :"""" Combining different tests and features | 41 :"""" Combining different tests and features |
39 :call add(tl, ['[^[=a=]]\+', 'ddaãâbcd', 'dd']) | 42 :call add(tl, ['[^[=a=]]\+', 'ddaãâbcd', 'dd']) |
40 | 43 |
41 :"""" Run the tests | 44 :"""" Run the tests |
42 | |
43 :" | 45 :" |
44 :for t in tl | 46 :for t in tl |
45 : let l = matchlist(t[1], t[0]) | 47 : let l = matchlist(t[1], t[0]) |
46 :" check the match itself | 48 :" check the match itself |
47 : if len(l) == 0 && len(t) > 2 | 49 : if len(l) == 0 && len(t) > 2 |