mbouard wrote:
> On Thursday, April 14, 2016 at 4:57:33 PM UTC+2, Bram Moolenaar wrote:
> > Patch 7.4.1734 (after 7.4.1730)
> > Problem: Test fails when not using utf-8.
> > Solution: Split test in regularand utf-8 part.
> > Files: src/testdir/test_expr.vim, src/testdir/test_expr_utf8.vim,
> > src/testdir/test_alot_utf8.vim
[...]
> The wrong part was moved to Test_strgetchar function in test_expr_utf8.vim.
> It should be:
>
> 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
>
> (with the á and à characters)
Strange mistake. Thanks for noticing.
--
Life would be so much easier if we could just look at the source code.
/// 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.