mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
32 lines
577 B
Lua
32 lines
577 B
Lua
local t = require('test.functional.testutil')()
|
||
|
||
local poke_eventloop = t.poke_eventloop
|
||
local clear = t.clear
|
||
local insert = t.insert
|
||
local expect = t.expect
|
||
local command = t.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)
|