mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
07cc231142
The commit summary maybe does not make sense, but calling a function that does not wait on anything `wait()` makes even less sense.
32 lines
622 B
Lua
32 lines
622 B
Lua
local helpers = require('test.functional.helpers')(after_each)
|
||
|
||
local poke_eventloop = helpers.poke_eventloop
|
||
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]=])
|
||
poke_eventloop()
|
||
|
||
command('/^Test bce:/+1')
|
||
command([[$put =search('A', 'bce', line('.'))]])
|
||
|
||
-- Assert buffer contents.
|
||
expect([=[
|
||
Results:
|
||
|
||
Test bce:
|
||
A
|
||
4]=])
|
||
end)
|
||
end)
|