aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_excmd.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-17 22:40:10 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-17 22:45:14 +0800
commit3f75f25f9c077a284aedab09c5813d887a62f464 (patch)
tree85b7f75a1a7a067dc7b1e714fffe99abe6fa0996 /src/nvim/testdir/test_excmd.vim
parent9736605672e8648bbe8739a6fdd1c315183bce40 (diff)
downloadrneovim-3f75f25f9c077a284aedab09c5813d887a62f464.tar.gz
rneovim-3f75f25f9c077a284aedab09c5813d887a62f464.tar.bz2
rneovim-3f75f25f9c077a284aedab09c5813d887a62f464.zip
vim-patch:8.2.2945: some buffer related code is not tested
Problem: Some buffer related code is not tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8320) https://github.com/vim/vim/commit/59b262362f26b3aaea1eeb0078adc33eed59863e Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/testdir/test_excmd.vim')
-rw-r--r--src/nvim/testdir/test_excmd.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_excmd.vim b/src/nvim/testdir/test_excmd.vim
index 42b1f8ca48..44bed890f5 100644
--- a/src/nvim/testdir/test_excmd.vim
+++ b/src/nvim/testdir/test_excmd.vim
@@ -78,6 +78,14 @@ func Test_file_cmd()
call assert_fails('3file', 'E474:')
call assert_fails('0,0file', 'E474:')
call assert_fails('0file abc', 'E474:')
+ if !has('win32')
+ " Change the name of the buffer to the same name
+ new Xfile1
+ file Xfile1
+ call assert_equal('Xfile1', @%)
+ call assert_equal('Xfile1', @#)
+ bw!
+ endif
endfunc
" Test for the :drop command