robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
4a0005aee9
master
1" Tests for related f{char} and t{char} using utf-8. 2 3" Test for t,f,F,T movement commands 4func Test_search_cmds () 5new ! 6call setline ( 1 , "・最初から最後まで最強のVimは最高" ) 71 8normal ! f最 9call assert_equal ([ 0 , 1 , 4 , 0 ], getpos ( '.' )) 10normal ! ; 11call assert_equal ([ 0 , 1 , 16 , 0 ], getpos ( '.' )) 12normal ! 2; 13call assert_equal ([ 0 , 1 , 43 , 0 ], getpos ( '.' )) 14normal ! , 15call assert_equal ([ 0 , 1 , 28 , 0 ], getpos ( '.' )) 16call assert_equal ( '最' , getcharsearch (). char ) 17call setcharsearch ({ 'char' : '' }) 18call assert_equal ( '' , getcharsearch (). char ) 19call assert_beeps ( 'normal ;' ) 20call assert_equal ([ 0 , 1 , 28 , 0 ], getpos ( '.' )) 21call assert_beeps ( 'normal ,' ) 22call assert_equal ([ 0 , 1 , 28 , 0 ], getpos ( '.' )) 23bw ! 24endfunc 25 26" vim: shiftwidth=2 sts=2 expandtab