diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-01-01 17:40:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-01 17:40:26 -0500 |
| commit | 5eccfd2b2e5366f2bbe6aca1471a5d52e77c9fbc (patch) | |
| tree | bee93b8000a81cc57203a8f408425a656c05e410 /src/nvim/testdir/test_usercommands.vim | |
| parent | 7718826edf0a4af175d230a691d9d9559f9d8acc (diff) | |
| parent | 52bfaea70e901f2e1db9f9db173a50ef3da898c9 (diff) | |
| download | rneovim-5eccfd2b2e5366f2bbe6aca1471a5d52e77c9fbc.tar.gz rneovim-5eccfd2b2e5366f2bbe6aca1471a5d52e77c9fbc.tar.bz2 rneovim-5eccfd2b2e5366f2bbe6aca1471a5d52e77c9fbc.zip | |
Merge pull request #13655 from janlazo/vim-8.2.2255
vim-patch:8.1.{1241,1261,1275,1281,1549,1590,1881,2079,2322,2360,2411},8.2.{113,388,934,2255,2258,2260,2269}
Diffstat (limited to 'src/nvim/testdir/test_usercommands.vim')
| -rw-r--r-- | src/nvim/testdir/test_usercommands.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_usercommands.vim b/src/nvim/testdir/test_usercommands.vim index 0a89066a2b..4621207d19 100644 --- a/src/nvim/testdir/test_usercommands.vim +++ b/src/nvim/testdir/test_usercommands.vim @@ -393,9 +393,13 @@ func Test_addr_all() call assert_equal(len(gettabinfo()), g:a2) bwipe - command! -addr=other DoSomething echo 'nothing' + command! -addr=other DoSomething let g:a1 = <line1> | let g:a2 = <line2> DoSomething - call assert_fails('%DoSomething') + call assert_equal(line('.'), g:a1) + call assert_equal(line('.'), g:a2) + %DoSomething + call assert_equal(1, g:a1) + call assert_equal(line('$'), g:a2) delcommand DoSomething endfunc @@ -421,7 +425,7 @@ func Test_command_list() \ execute('command DoCmd')) command! -count=2 DoCmd : call assert_equal("\n Name Args Address Complete Definition" - \ .. "\n DoCmd 0 2c :", + \ .. "\n DoCmd 0 2c ? :", \ execute('command DoCmd')) " Test with various -addr= argument values. |