neovim/test/functional/legacy/search_mbyte_spec.lua

32 lines
592 B
Lua
Raw Normal View History

local helpers = require('test.functional.helpers')(after_each)
local wait = helpers.wait
local clear = helpers.clear
2016-02-01 00:53:59 -07:00
local insert = helpers.insert
local expect = helpers.expect
local command = helpers.command
describe('search_mbyte', function()
before_each(clear)
it("search('multi-byte char', 'bce')", function()
insert([=[
Results:
Test bce:
]=])
wait()
command('/^Test bce:/+1')
command([[$put =search('', 'bce', line('.'))]])
-- Assert buffer contents.
expect([=[
Results:
Test bce:
4]=])
end)
end)