From 2c64f01674d110063d79c77b0246abcc8a6f4ca3 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 24 Feb 2018 21:35:28 +0100 Subject: vim-patch:8.0.0708: some tests are old style Problem: Some tests are old style. Solution: Change a few tests from old style to new style. (pschuh, closes vim/vim#1813) https://github.com/vim/vim/commit/292eff0c5aacb8531d65509679b6c29eae8dc22a --- src/nvim/testdir/test_maparg.vim | 52 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/nvim/testdir/test_maparg.vim (limited to 'src/nvim/testdir/test_maparg.vim') diff --git a/src/nvim/testdir/test_maparg.vim b/src/nvim/testdir/test_maparg.vim new file mode 100644 index 0000000000..9ad83836c6 --- /dev/null +++ b/src/nvim/testdir/test_maparg.vim @@ -0,0 +1,52 @@ +" Tests for maparg(). +" Also test utf8 map with a 0x80 byte. +if !has("multi_byte") + finish +endif + +function s:SID() + return str2nr(matchstr(expand(''), '\zs\d\+\ze_SID$')) +endfun + +function Test_maparg() + new + set cpo-=< + set encoding=utf8 + " Test maparg() with a string result + map foo isfoo + vnoremap