mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
65fb622000
Hope this will make people using feed_command less likely: this hides bugs. Already found at least two: 1. msgpackparse() will show internal error: hash_add() in case of duplicate keys, though it will still work correctly. Currently silenced. 2. ttimeoutlen was spelled incorrectly, resulting in option not being set when expected. Test was still functioning somehow though. Currently fixed.
33 lines
618 B
Lua
33 lines
618 B
Lua
local helpers = require('test.functional.helpers')(after_each)
|
||
|
||
local feed = helpers.feed
|
||
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)
|