mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Add test files for patch 7.4.771.
vim-patch:efcabd6892ad89a4585fb77aa94c3b1802b784ab
This commit is contained in:
parent
7d2d4b1918
commit
02cf813eff
31
test/functional/legacy/search_mbyte_spec.lua
Normal file
31
test/functional/legacy/search_mbyte_spec.lua
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
-- Test for search('multi-byte char', 'bce')
|
||||||
|
|
||||||
|
local helpers = require('test.functional.helpers')
|
||||||
|
local feed, insert, source = helpers.feed, helpers.insert, helpers.source
|
||||||
|
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
|
||||||
|
|
||||||
|
describe('search_mbyte', function()
|
||||||
|
setup(clear)
|
||||||
|
|
||||||
|
it('is working', function()
|
||||||
|
insert([=[
|
||||||
|
Results:
|
||||||
|
|
||||||
|
Test bce:
|
||||||
|
A]=])
|
||||||
|
|
||||||
|
execute('source small.vim')
|
||||||
|
execute('source mbyte.vim')
|
||||||
|
execute('set encoding=utf-8')
|
||||||
|
execute('/^Test bce:/+1')
|
||||||
|
execute([[$put =search('A', 'bce', line('.'))]])
|
||||||
|
|
||||||
|
-- Assert buffer contents.
|
||||||
|
expect([=[
|
||||||
|
Results:
|
||||||
|
|
||||||
|
Test bce:
|
||||||
|
A
|
||||||
|
4]=])
|
||||||
|
end)
|
||||||
|
end)
|
Loading…
Reference in New Issue
Block a user