mirror of
https://github.com/neovim/neovim.git
synced 2026-03-21 16:09:42 +00:00
test: search_mbyte_spec: minor cleanup
mbyte.vim, small.vim are not relevant to migrated legacy tests.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
-- Test for search('multi-byte char', 'bce')
|
||||
|
||||
local helpers = require('test.functional.helpers')
|
||||
local insert = helpers.insert
|
||||
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
|
||||
@@ -7,16 +5,13 @@ local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
|
||||
describe('search_mbyte', function()
|
||||
before_each(clear)
|
||||
|
||||
it('is working', function()
|
||||
it("search('multi-byte char', 'bce')", 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('.'))]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user