1
0
forked from aniani/vim

patch 8.2.0134: some map functionality not covered by tests

Problem:    Some map functionality not covered by tests.
Solution:   Add tests. (Yegappan Lakshmanan, closes #5504)
This commit is contained in:
Bram Moolenaar
2020-01-20 20:41:42 +01:00
parent 98a336dd49
commit 8ba6bb7c94
3 changed files with 82 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ function Test_maparg()
map abc y<S-char-114>y
call assert_equal("yRy", maparg('abc'))
omap { w
let d = maparg('{', 'o', 0, 1)
call assert_equal(['{', 'w', 'o'], [d.lhs, d.rhs, d.mode])
ounmap {
map abc <Nop>
call assert_equal("<Nop>", maparg('abc'))
unmap abc
@@ -102,3 +107,5 @@ function Test_range_map()
execute "normal a\uf040\<Esc>"
call assert_equal("abcd", getline(1))
endfunction
" vim: shiftwidth=2 sts=2 expandtab