diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-12-25 12:57:09 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-12-25 12:57:09 -0500 |
commit | 7231a23cf651f8d950f53d4537e650085a41fb66 (patch) | |
tree | a923fb1b02d7b91621d0cb118f2455a5c11d835b /test | |
parent | f13b90c064e817664f48bb7f0ce3e69cd54943c7 (diff) | |
parent | e06159e6ae907c50e2f36ad491297d23cb97487a (diff) | |
download | rneovim-7231a23cf651f8d950f53d4537e650085a41fb66.tar.gz rneovim-7231a23cf651f8d950f53d4537e650085a41fb66.tar.bz2 rneovim-7231a23cf651f8d950f53d4537e650085a41fb66.zip |
Merge pull request #1722 from fwalch/vim-7.4.488
vim-patch:7.4.483, vim-patch:7.4.485, vim-patch:7.4.488
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/legacy/mapping_spec.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua new file mode 100644 index 0000000000..46d29d1692 --- /dev/null +++ b/test/functional/legacy/mapping_spec.lua @@ -0,0 +1,26 @@ +-- Test for mappings and abbreviations + +local helpers = require('test.functional.helpers') +local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert +local execute, expect = helpers.execute, helpers.expect + +describe('mapping', function() + setup(clear) + + it('is working', function() + insert([[ + test starts here: + ]]) + + execute('set encoding=utf-8') + + -- Abbreviations with р (0x80) should work. + execute('inoreab чкпр vim') + feed('GAчкпр <cr><esc>') + + -- Assert buffer contents. + expect([[ + test starts here: + vim]]) + end) +end) |