From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. Signed-off-by: Daniel Baumann --- src/testdir/test_map_functions.vim | 584 +++++++++++++++++++++++++++++++++++++ 1 file changed, 584 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..a750cd7 --- /dev/null +++ b/src/testdir/test_map_functions.vim @@ -0,0 +1,584 @@ +" Tests for maparg(), mapcheck(), mapset(), maplist() +" Also test utf8 map with a 0x80 byte. + +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