File: //home/ubuntu/neovim/test/functional/legacy/search_mbyte_spec.lua
local n = require('test.functional.testnvim')()
local poke_eventloop = n.poke_eventloop
local clear = n.clear
local insert = n.insert
local expect = n.expect
local command = n.command
describe('search_mbyte', function()
before_each(clear)
it("search('multi-byte char', 'bce')", function()
insert([=[
Results:
Test bce:
A]=])
poke_eventloop()
command('/^Test bce:/+1')
command([[$put =search('A', 'bce', line('.'))]])
-- Assert buffer contents.
expect([=[
Results:
Test bce:
A
4]=])
end)
end)