mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
69234f4a76
mbyte.vim, small.vim are not relevant to migrated legacy tests.
27 lines
542 B
Lua
27 lines
542 B
Lua
local helpers = require('test.functional.helpers')
|
||
local insert = helpers.insert
|
||
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
|
||
|
||
describe('search_mbyte', function()
|
||
before_each(clear)
|
||
|
||
it("search('multi-byte char', 'bce')", function()
|
||
insert([=[
|
||
Results:
|
||
|
||
Test bce:
|
||
A]=])
|
||
|
||
execute('/^Test bce:/+1')
|
||
execute([[$put =search('A', 'bce', line('.'))]])
|
||
|
||
-- Assert buffer contents.
|
||
expect([=[
|
||
Results:
|
||
|
||
Test bce:
|
||
A
|
||
4]=])
|
||
end)
|
||
end)
|