diff src/testdir/test_maparg.vim @ 19149:643c6c3c0da4 v8.2.0134

patch 8.2.0134: some map functionality not covered by tests Commit: https://github.com/vim/vim/commit/8ba6bb7c94229f1e6f85ea5152ed8b4fbbbd9d20 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 20 20:41:42 2020 +0100 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 https://github.com/vim/vim/issues/5504)
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Jan 2020 20:45:04 +0100
parents 0cdb6ac20748
children ad40333f2ec0
line wrap: on
line diff
--- a/src/testdir/test_maparg.vim
+++ b/src/testdir/test_maparg.vim
@@ -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