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 vim/vim#5504)
8ba6bb7c94
This commit is contained in:
Jan Edmund Lazo
2020-04-01 18:45:38 -04:00
parent 87334c00e0
commit d74a28d716
2 changed files with 81 additions and 0 deletions

View File

@@ -41,6 +41,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
@@ -62,3 +67,5 @@ function Test_range_map()
execute "normal a\uf040\<Esc>"
call assert_equal("abcd", getline(1))
endfunction
" vim: shiftwidth=2 sts=2 expandtab