robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1-- Test for CTRL-W in Insert mode 2 3local n =require ( 'test.functional.testnvim' )() 4local t =require ( 'test.testutil' ) 5 6local describe , it , setup =t . describe , t . it , t . setup 7local clear , feed , expect =n . clear , n . feed , n . expect 8 9describe ( 'CTRL-W in Insert mode' , function () 10setup ( clear ) 11 12-- luacheck: ignore 611 (Line contains only whitespaces) 13it ( 'works for multi-byte characters' , function () 14for i =1 , 6 do 15feed ( 'o wwwこんにちわ世界ワールドvim ' .. string . rep ( '<C-w>' , i ) .. '<esc>' ) 16end 17 18expect ( [[ 1920 wwwこんにちわ世界ワールド 21wwwこんにちわ世界 22wwwこんにちわ 23www 2425 ]] ) 26end ) 27end )