home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.987 < prev    next >
Encoding:
Internet Message Format  |  2013-05-20  |  6.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.987
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.987
  11. Problem:    No easy to run an individual test.  Tests 64 fails when
  12.         'encoding' is not utf-8.
  13. Solution:   Add individual test targets to the Makefile.  Move some lines from
  14.         test 64 to 95.
  15. Files:        src/Makefile, src/testdir/test64.in, src/testdir/test64.ok,
  16.         src/testdir/test95.in, src/testdir/test95.ok
  17.  
  18.  
  19. *** ../vim-7.3.986/src/Makefile    2013-05-19 19:16:25.000000000 +0200
  20. --- src/Makefile    2013-05-21 13:18:04.000000000 +0200
  21. ***************
  22. *** 1861,1866 ****
  23. --- 1861,1879 ----
  24.           ./$$t || exit 1; echo $$t passed; \
  25.       done
  26.   
  27. + # Run individual test, assuming that Vim was already compiled.
  28. + test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 \
  29. +     test11 test12 test13 test14 test15 test16 test17 test18 test19 \
  30. +     test21 test22 test23 test24 test25 test26 test27 test28 test29 \
  31. +     test31 test32 test33 test34 test35 test36 test37 test38 test39 \
  32. +     test41 test42 test43 test44 test45 test46 test47 test48 test49 \
  33. +     test51 test52 test53 test54 test55 test56 test57 test58 test59 \
  34. +     test61 test62 test63 test64 test65 test66 test67 test68 test69 \
  35. +     test71 test72 test73 test74 test75 test76 test77 test78 test79 \
  36. +     test81 test82 test83 test84 test85 test86 test87 test88 test89 \
  37. +     test91 test92 test93 test94 test95 test96 test97 test98 test99:
  38. +     cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
  39.   testclean:
  40.       cd testdir; $(MAKE) -f Makefile clean
  41.       if test -d $(PODIR); then \
  42. *** ../vim-7.3.986/src/testdir/test64.in    2013-05-21 00:02:54.000000000 +0200
  43. --- src/testdir/test64.in    2013-05-21 13:23:27.000000000 +0200
  44. ***************
  45. *** 262,271 ****
  46.   :call add(tl, ['[a-zA-Z]', 'a', 'a'])
  47.   :call add(tl, ['[A-Z]', 'a'])
  48.   :call add(tl, ['\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
  49. - :call add(tl, ['\i\+', '&*┬ºxx ', 'xx'])
  50. - :call add(tl, ['\%#=1\i\+', '&*┬ºxx ', 'xx'])
  51. - :call add(tl, ['\f\+', '&*┬ƒfname ', 'fname'])
  52. - :call add(tl, ['\%#=1\i\+', '&*┬ƒfname ', 'fname'])
  53.   
  54.   :"""" Tests for \z features
  55.   :call add(tl, ['xx \ze test', 'xx '])                    " must match after \ze
  56. --- 262,267 ----
  57. ***************
  58. *** 290,302 ****
  59.   
  60.   :"""" Combining different tests and features
  61.   :call add(tl, ['[[:alpha:]]\{-2,6}', '787abcdiuhsasiuhb4', 'ab'])
  62. - :call add(tl, ['[^[=a=]]\+', 'dda├ú├óbcd', 'dd'])
  63.   :call add(tl, ['', 'abcd', ''])
  64.   :call add(tl, ['\v(())', 'any possible text', ''])
  65.   :call add(tl, ['\v%(ab(xyz)c)', '   abxyzc ', 'abxyzc', 'xyz'])
  66.   :call add(tl, ['\v(test|)empty', 'tesempty', 'empty', ''])
  67.   :call add(tl, ['\v(a|aa)(a|aa)', 'aaa', 'aa', 'a', 'a'])
  68.   
  69.   
  70.   :"""" Run the tests
  71.   
  72. --- 286,303 ----
  73.   
  74.   :"""" Combining different tests and features
  75.   :call add(tl, ['[[:alpha:]]\{-2,6}', '787abcdiuhsasiuhb4', 'ab'])
  76.   :call add(tl, ['', 'abcd', ''])
  77.   :call add(tl, ['\v(())', 'any possible text', ''])
  78.   :call add(tl, ['\v%(ab(xyz)c)', '   abxyzc ', 'abxyzc', 'xyz'])
  79.   :call add(tl, ['\v(test|)empty', 'tesempty', 'empty', ''])
  80.   :call add(tl, ['\v(a|aa)(a|aa)', 'aaa', 'aa', 'a', 'a'])
  81.   
  82. + :"""" \%u and friends
  83. + :call add(tl, ['\%d32', 'yes no', ' '])
  84. + :call add(tl, ['\%o40', 'yes no', ' '])
  85. + :call add(tl, ['\%x20', 'yes no', ' '])
  86. + :call add(tl, ['\%u0020', 'yes no', ' '])
  87. + :call add(tl, ['\%U00000020', 'yes no', ' '])
  88.   
  89.   :"""" Run the tests
  90.   
  91. *** ../vim-7.3.986/src/testdir/test64.ok    2013-05-21 00:02:54.000000000 +0200
  92. --- src/testdir/test64.ok    2013-05-21 13:23:37.000000000 +0200
  93. ***************
  94. *** 203,212 ****
  95.   OK - [a-zA-Z]
  96.   OK - [A-Z]
  97.   OK - \C[^A-Z]\+
  98. - OK - \i\+
  99. - OK - \%#=1\i\+
  100. - OK - \f\+
  101. - OK - \%#=1\i\+
  102.   OK - xx \ze test
  103.   OK - abc\zeend
  104.   OK - abc\zsdd
  105. --- 203,208 ----
  106. ***************
  107. *** 225,234 ****
  108.   OK - .*John\&.*Bob
  109.   OK - \v(test1)@=.*yep
  110.   OK - [[:alpha:]]\{-2,6}
  111. - OK - [^[=a=]]\+
  112.   OK - 
  113.   OK - \v(())
  114.   OK - \v%(ab(xyz)c)
  115.   OK - \v(test|)empty
  116.   OK - \v(a|aa)(a|aa)
  117.   192.168.0.1
  118. --- 221,234 ----
  119.   OK - .*John\&.*Bob
  120.   OK - \v(test1)@=.*yep
  121.   OK - [[:alpha:]]\{-2,6}
  122.   OK - 
  123.   OK - \v(())
  124.   OK - \v%(ab(xyz)c)
  125.   OK - \v(test|)empty
  126.   OK - \v(a|aa)(a|aa)
  127. + OK - \%d32
  128. + OK - \%o40
  129. + OK - \%x20
  130. + OK - \%u0020
  131. + OK - \%U00000020
  132.   192.168.0.1
  133. *** ../vim-7.3.986/src/testdir/test95.in    2013-05-21 13:05:05.000000000 +0200
  134. --- src/testdir/test95.in    2013-05-21 13:24:19.000000000 +0200
  135. ***************
  136. *** 7,13 ****
  137.   STARTTEST
  138.   :so small.vim
  139.   :so mbyte.vim
  140. ! :set encoding=utf-8 viminfo+=nviminfo
  141.   :" tl is a List of Lists with:
  142.   :"    regexp pattern
  143.   :"    text to test the pattern on
  144. --- 7,13 ----
  145.   STARTTEST
  146.   :so small.vim
  147.   :so mbyte.vim
  148. ! :set nocp encoding=utf-8 viminfo+=nviminfo
  149.   :" tl is a List of Lists with:
  150.   :"    regexp pattern
  151.   :"    text to test the pattern on
  152. ***************
  153. *** 29,34 ****
  154. --- 29,43 ----
  155.   :" this is not a normal "i" but 0xec
  156.   :call add(tl, ['\p\+', '├¼a', '├¼a'])
  157.   
  158. + :"""" Test recognition of some character classes
  159. + :call add(tl, ['\i\+', '&*┬ºxx ', 'xx'])
  160. + :call add(tl, ['\%#=1\i\+', '&*┬ºxx ', 'xx'])
  161. + :call add(tl, ['\f\+', '&*┬ƒfname ', 'fname'])
  162. + :call add(tl, ['\%#=1\i\+', '&*┬ƒfname ', 'fname'])
  163. + :"""" Combining different tests and features
  164. + :call add(tl, ['[^[=a=]]\+', 'dda├ú├óbcd', 'dd'])
  165.   :"""" Run the tests
  166.   
  167.   :"
  168. *** ../vim-7.3.986/src/testdir/test95.ok    2013-05-21 12:34:13.000000000 +0200
  169. --- src/testdir/test95.ok    2013-05-21 13:24:23.000000000 +0200
  170. ***************
  171. *** 5,7 ****
  172. --- 5,12 ----
  173.   OK -  [^ ]\+
  174.   OK - [α╕í[:alpha:][=a=]]\+
  175.   OK - \p\+
  176. + OK - \i\+
  177. + OK - \%#=1\i\+
  178. + OK - \f\+
  179. + OK - \%#=1\i\+
  180. + OK - [^[=a=]]\+
  181. *** ../vim-7.3.986/src/version.c    2013-05-21 13:05:05.000000000 +0200
  182. --- src/version.c    2013-05-21 13:27:12.000000000 +0200
  183. ***************
  184. *** 730,731 ****
  185. --- 730,733 ----
  186.   {   /* Add new patch number below this line */
  187. + /**/
  188. +     987,
  189.   /**/
  190.  
  191. -- 
  192. An SQL statement walks into a bar.  He approaches two tables
  193. and says, "Mind if I join you?"
  194.  
  195.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  196. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  197. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  198.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  199.