diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2016-01-30 21:36:33 +0100 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2016-02-01 08:48:36 +0100 |
commit | 02cf813eff2282cdfce9cc9a9b997c1e16e38343 (patch) | |
tree | b993a86901d602e5b96bbda1f016c69fe6cbe832 | |
parent | 7d2d4b1918fe2a413d5b5618bacfc78ccaae5414 (diff) | |
download | rneovim-02cf813eff2282cdfce9cc9a9b997c1e16e38343.tar.gz rneovim-02cf813eff2282cdfce9cc9a9b997c1e16e38343.tar.bz2 rneovim-02cf813eff2282cdfce9cc9a9b997c1e16e38343.zip |
Add test files for patch 7.4.771.
vim-patch:efcabd6892ad89a4585fb77aa94c3b1802b784ab
-rw-r--r-- | test/functional/legacy/search_mbyte_spec.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/functional/legacy/search_mbyte_spec.lua b/test/functional/legacy/search_mbyte_spec.lua new file mode 100644 index 0000000000..58c064161b --- /dev/null +++ b/test/functional/legacy/search_mbyte_spec.lua @@ -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) |