neovim/test/functional/legacy/search_mbyte_spec.lua
Justin M. Keyes 69234f4a76 test: search_mbyte_spec: minor cleanup
mbyte.vim, small.vim are not relevant to migrated legacy tests.
2016-02-15 01:47:43 -05:00

27 lines
542 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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:
]=])
execute('/^Test bce:/+1')
execute([[$put =search('', 'bce', line('.'))]])
-- Assert buffer contents.
expect([=[
Results:
Test bce:
4]=])
end)
end)