From 50876c2f7095d0a43dd33d2ed3cfd773e33ce882 Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Sun, 9 Nov 2014 20:42:45 -0200 Subject: legacy tests: migrate test75 --- test/functional/legacy/075_maparg_spec.lua | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 test/functional/legacy/075_maparg_spec.lua (limited to 'test') diff --git a/test/functional/legacy/075_maparg_spec.lua b/test/functional/legacy/075_maparg_spec.lua new file mode 100644 index 0000000000..dac8940314 --- /dev/null +++ b/test/functional/legacy/075_maparg_spec.lua @@ -0,0 +1,58 @@ +-- Tests for maparg(). +-- Also test utf8 map with a 0x80 byte. + +local helpers = require('test.functional.helpers') +local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert +local execute, expect = helpers.execute, helpers.expect + +describe('maparg()', function() + setup(clear) + + it('is working', function() + execute('set cpo-=<') + execute('set encoding=utf8') + + -- Test maparg() with a string result + execute('map foo isfoo') + execute('vnoremap