blob: 82a807ac5be7913feeb39556d8f32a2ef10b386d [file] [log] [blame]
Bram Moolenaar454709b2017-03-12 16:37:14 +01001" Tests for related f{char} and t{char} using utf-8.
Bram Moolenaar454709b2017-03-12 16:37:14 +01002
3" Test for t,f,F,T movement commands
Bram Moolenaar1e115362019-01-09 23:01:02 +01004func Test_search_cmds()
Bram Moolenaar454709b2017-03-12 16:37:14 +01005 new!
6 call setline(1, "・最初から最後まで最強のVimは最高")
7 1
8 normal! f
9 call assert_equal([0, 1, 4, 0], getpos('.'))
10 normal! ;
11 call assert_equal([0, 1, 16, 0], getpos('.'))
12 normal! 2;
13 call assert_equal([0, 1, 43, 0], getpos('.'))
14 normal! ,
15 call assert_equal([0, 1, 28, 0], getpos('.'))
16 bw!
Bram Moolenaar1e115362019-01-09 23:01:02 +010017endfunc
Bram Moolenaar454709b2017-03-12 16:37:14 +010018
19" vim: shiftwidth=2 sts=2 expandtab