Patch 7.4.1741
Problem:    Not testing utf-8 characters.
Solution:   Move the right asserts to the test_expr_utf8 test.
Files:      src/testdir/test_expr_utf8.vim


*** ../vim-7.4.1740/src/testdir/test_expr_utf8.vim      2016-04-14 
16:56:57.111452601 +0200
--- src/testdir/test_expr_utf8.vim      2016-04-14 22:51:50.588198584 +0200
***************
*** 6,18 ****
  scriptencoding utf-8
  
  func Test_strgetchar()
!   call assert_equal(char2nr('a'), strgetchar('axb', 0))
!   call assert_equal(char2nr('x'), strgetchar('axb', 1))
!   call assert_equal(char2nr('b'), strgetchar('axb', 2))
  
!   call assert_equal(-1, strgetchar('axb', -1))
!   call assert_equal(-1, strgetchar('axb', 3))
!   call assert_equal(-1, strgetchar('', 0))
  endfunc
  
  func Test_strcharpart()
--- 6,17 ----
  scriptencoding utf-8
  
  func Test_strgetchar()
!   call assert_equal(char2nr('á'), strgetchar('áxb', 0))
!   call assert_equal(char2nr('x'), strgetchar('áxb', 1))
  
!   call assert_equal(char2nr('a'), strgetchar('àxb', 0))
!   call assert_equal(char2nr('̀'), strgetchar('àxb', 1))
!   call assert_equal(char2nr('x'), strgetchar('àxb', 2))
  endfunc
  
  func Test_strcharpart()
*** ../vim-7.4.1740/src/version.c       2016-04-14 19:48:54.809601526 +0200
--- src/version.c       2016-04-14 22:51:39.636313829 +0200
***************
*** 750,751 ****
--- 750,753 ----
  {   /* Add new patch number below this line */
+ /**/
+     1741,
  /**/

-- 
Facepalm reply #3: "I had a great time in Manhattan" "I thought you were
going to New York?"

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

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

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

Raspunde prin e-mail lui