From 029f72b1a93430b24b88eb3a72c6114d9f149737 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:09:20 +0200 Subject: Adding upstream version 2:9.1.0016. Signed-off-by: Daniel Baumann --- src/testdir/test_map_functions.vim | 631 +++++++++++++++++++++++++++++++++++++ 1 file changed, 631 insertions(+) create mode 100644 src/testdir/test_map_functions.vim (limited to 'src/testdir/test_map_functions.vim') diff --git a/src/testdir/test_map_functions.vim b/src/testdir/test_map_functions.vim new file mode 100644 index 0000000..c656368 --- /dev/null +++ b/src/testdir/test_map_functions.vim @@ -0,0 +1,631 @@ +" Tests for maparg(), mapcheck(), mapset(), maplist() +" Also test utf8 map with a 0x80 byte. + +source shared.vim + +func s:SID() + return str2nr(matchstr(expand(''), '\zs\d\+\ze_SID$')) +endfunc + +func Test_maparg() + new + set cpo-=< + set encoding=utf8 + " Test maparg() with a string result + let sid = s:SID() + let lnum = expand('') + map foo isfoo + vnoremap