mirror of
https://github.com/neovim/neovim.git
synced 2024-12-22 20:25:16 -07:00
32 lines
592 B
Lua
32 lines
592 B
Lua
local helpers = require('test.functional.helpers')(after_each)
|
||
|
||
local wait = helpers.wait
|
||
local clear = helpers.clear
|
||
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:
|
||
A]=])
|
||
wait()
|
||
|
||
command('/^Test bce:/+1')
|
||
command([[$put =search('A', 'bce', line('.'))]])
|
||
|
||
-- Assert buffer contents.
|
||
expect([=[
|
||
Results:
|
||
|
||
Test bce:
|
||
A
|
||
4]=])
|
||
end)
|
||
end)
|