search_mbyte_spec.lua (577B)
1 local n = require('test.functional.testnvim')() 2 3 local poke_eventloop = n.poke_eventloop 4 local clear = n.clear 5 local insert = n.insert 6 local expect = n.expect 7 local command = n.command 8 9 describe('search_mbyte', function() 10 before_each(clear) 11 12 it("search('multi-byte char', 'bce')", function() 13 insert([=[ 14 Results: 15 16 Test bce: 17 A]=]) 18 poke_eventloop() 19 20 command('/^Test bce:/+1') 21 command([[$put =search('A', 'bce', line('.'))]]) 22 23 -- Assert buffer contents. 24 expect([=[ 25 Results: 26 27 Test bce: 28 A 29 4]=]) 30 end) 31 end)