Mercurial > vim
view src/testdir/test_charsearch_utf8.vim @ 33874:902b7bdf2afb v9.0.2147
patch 9.0.2147: Type check tests fail without the channel feature
Commit: https://github.com/vim/vim/commit/3ee25965e4fbf9f44f5fc31d6a827638e409c6f8
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Dec 4 20:31:14 2023 +0100
patch 9.0.2147: Type check tests fail without the channel feature
Problem: Type check tests fail without the channel feature
Solution: only run tests, when Vim was build with +channel
fixes: #13617
closes: #13619
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Dec 2023 15:16:12 +0100 |
parents | 695b50472e85 |
children |
line wrap: on
line source
" Tests for related f{char} and t{char} using utf-8. " Test for t,f,F,T movement commands func Test_search_cmds() new! call setline(1, "・最初から最後まで最強のVimは最高") 1 normal! f最 call assert_equal([0, 1, 4, 0], getpos('.')) normal! ; call assert_equal([0, 1, 16, 0], getpos('.')) normal! 2; call assert_equal([0, 1, 43, 0], getpos('.')) normal! , call assert_equal([0, 1, 28, 0], getpos('.')) call assert_equal('最', getcharsearch().char) call setcharsearch({'char' : ''}) call assert_equal('', getcharsearch().char) call assert_beeps('normal ;') call assert_equal([0, 1, 28, 0], getpos('.')) call assert_beeps('normal ,') call assert_equal([0, 1, 28, 0], getpos('.')) bw! endfunc " vim: shiftwidth=2 sts=2 expandtab