comparison src/testdir/test_excmd.vim @ 24814:4c5eec1ef612 v8.2.2945

patch 8.2.2945: some buffer related code is not tested Commit: https://github.com/vim/vim/commit/59b262362f26b3aaea1eeb0078adc33eed59863e Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Jun 5 20:59:22 2021 +0200 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 https://github.com/vim/vim/issues/8320)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Jun 2021 21:00:04 +0200
parents acd9220bdd0b
children 4c1b6f3eb96b
comparison
equal deleted inserted replaced
24813:fd32e504070c 24814:4c5eec1ef612
67 " Test for the :file command 67 " Test for the :file command
68 func Test_file_cmd() 68 func Test_file_cmd()
69 call assert_fails('3file', 'E474:') 69 call assert_fails('3file', 'E474:')
70 call assert_fails('0,0file', 'E474:') 70 call assert_fails('0,0file', 'E474:')
71 call assert_fails('0file abc', 'E474:') 71 call assert_fails('0file abc', 'E474:')
72 if !has('win32')
73 " Change the name of the buffer to the same name
74 new Xfile1
75 file Xfile1
76 call assert_equal('Xfile1', @%)
77 call assert_equal('Xfile1', @#)
78 bw!
79 endif
72 endfunc 80 endfunc
73 81
74 " Test for the :drop command 82 " Test for the :drop command
75 func Test_drop_cmd() 83 func Test_drop_cmd()
76 call writefile(['L1', 'L2'], 'Xfile') 84 call writefile(['L1', 'L2'], 'Xfile')