robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1local n =require ( 'test.functional.testnvim' )() 2local t =require ( 'test.testutil' ) 3 4local describe , it , before_each =t . describe , t . it , t . before_each 5local poke_eventloop =n . poke_eventloop 6local clear =n . clear 7local insert =n . insert 8local expect =n . expect 9local command =n . command 10 11describe ( 'search_mbyte' , function () 12before_each ( clear ) 13 14it ( "search('multi-byte char', 'bce')" , function () 15insert ( [=[ 16Results: 17 18Test bce: 19A]=] ) 20poke_eventloop () 21 22command ( '/^Test bce:/+1' ) 23command ( [[$put =search('A', 'bce', line('.'))]] ) 24 25-- Assert buffer contents. 26expect ( [=[ 27Results: 28 29Test bce: 30A 314]=] ) 32end ) 33end )