Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
19148:b75ea81727be | 19149:643c6c3c0da4 |
---|---|
39 | 39 |
40 map abc x<char-114>x | 40 map abc x<char-114>x |
41 call assert_equal("xrx", maparg('abc')) | 41 call assert_equal("xrx", maparg('abc')) |
42 map abc y<S-char-114>y | 42 map abc y<S-char-114>y |
43 call assert_equal("yRy", maparg('abc')) | 43 call assert_equal("yRy", maparg('abc')) |
44 | |
45 omap { w | |
46 let d = maparg('{', 'o', 0, 1) | |
47 call assert_equal(['{', 'w', 'o'], [d.lhs, d.rhs, d.mode]) | |
48 ounmap { | |
44 | 49 |
45 map abc <Nop> | 50 map abc <Nop> |
46 call assert_equal("<Nop>", maparg('abc')) | 51 call assert_equal("<Nop>", maparg('abc')) |
47 unmap abc | 52 unmap abc |
48 endfunction | 53 endfunction |
100 " Outside of the range, maximum | 105 " Outside of the range, maximum |
101 inoremap <Char-0xf040> d | 106 inoremap <Char-0xf040> d |
102 execute "normal a\uf040\<Esc>" | 107 execute "normal a\uf040\<Esc>" |
103 call assert_equal("abcd", getline(1)) | 108 call assert_equal("abcd", getline(1)) |
104 endfunction | 109 endfunction |
110 | |
111 " vim: shiftwidth=2 sts=2 expandtab |