1" Tests for related f{char} and t{char} using utf-8.
2if !has('multi_byte')
3  finish
4endif
5
6" Test for t,f,F,T movement commands
7function! Test_search_cmds()
8  new!
9  call setline(1, "・最初から最後まで最強のVimは最高")
10  1
11  normal! f最
12  call assert_equal([0, 1, 4, 0], getpos('.'))
13  normal! ;
14  call assert_equal([0, 1, 16, 0], getpos('.'))
15  normal! 2;
16  call assert_equal([0, 1, 43, 0], getpos('.'))
17  normal! ,
18  call assert_equal([0, 1, 28, 0], getpos('.'))
19  bw!
20endfunction
21
22" vim: shiftwidth=2 sts=2 expandtab
23