diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-26 21:54:48 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-26 21:58:04 -0500 |
commit | 278a0b8df3a70e46228b4f41786c38bbd2d91756 (patch) | |
tree | f61c6d9408fb247eaca30aa00f91cae42bdfdfea /src | |
parent | 90f2b1360469821dfd0e7e75d0b43859aa27dac1 (diff) | |
download | rneovim-278a0b8df3a70e46228b4f41786c38bbd2d91756.tar.gz rneovim-278a0b8df3a70e46228b4f41786c38bbd2d91756.tar.bz2 rneovim-278a0b8df3a70e46228b4f41786c38bbd2d91756.zip |
vim-patch:8.1.1252: not all mapping completion is tested
Problem: Not all mapping completion is tested.
Solution: Add a few more mapping completion tests.
https://github.com/vim/vim/commit/1776a28e9c7fd0236927f14e9df807e524b30721
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 23784b0308..4a9f1ed19a 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -78,19 +78,31 @@ func Test_map_completion() call feedkeys(":map <silent> <sp\<Tab>\<Home>\"\<CR>", 'xt') call assert_equal('"map <silent> <special>', getreg(':')) + map <Middle>x middle + map ,f commaf map ,g commaf + map <Left> left + map <A-Left>x shiftleft call feedkeys(":map ,\<Tab>\<Home>\"\<CR>", 'xt') call assert_equal('"map ,f', getreg(':')) call feedkeys(":map ,\<Tab>\<Tab>\<Home>\"\<CR>", 'xt') call assert_equal('"map ,g', getreg(':')) + call feedkeys(":map <L\<Tab>\<Home>\"\<CR>", 'xt') + call assert_equal('"map <Left>', getreg(':')) + call feedkeys(":map <A-Left>\<Tab>\<Home>\"\<CR>", 'xt') + call assert_equal('"map <A-Left>x', getreg(':')) unmap ,f unmap ,g + unmap <Left> + unmap <A-Left>x set cpo-=< cpo-=B cpo-=k map <Left> left call feedkeys(":map <L\<Tab>\<Home>\"\<CR>", 'xt') call assert_equal('"map <Left>', getreg(':')) + call feedkeys(":map <M\<Tab>\<Home>\"\<CR>", 'xt') + call assert_equal('"map <M', getreg(':')) unmap <Left> " set cpo+=< @@ -113,6 +125,9 @@ func Test_map_completion() call assert_equal('"map <Left>', getreg(':')) unmap <Left> " set cpo-=k + + unmap <Middle>x + set cpo&vim endfunc func Test_match_completion() |