To: vim_dev@googlegroups.com Subject: Patch 7.4.1742 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///