forked from aniani/vim
patch 8.2.0261: some code not covered by tests
Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes #5645)
This commit is contained in:
@@ -94,8 +94,12 @@ func Test_exists()
|
||||
call assert_equal(0, exists(':edit/a'))
|
||||
" Valid internal command (partial match)
|
||||
call assert_equal(1, exists(':q'))
|
||||
" Valid internal command with a digit
|
||||
call assert_equal(2, exists(':2match'))
|
||||
" Non-existing internal command
|
||||
call assert_equal(0, exists(':invalidcmd'))
|
||||
" Internal command with a count
|
||||
call assert_equal(0, exists(':3buffer'))
|
||||
|
||||
" User defined command (full match)
|
||||
command! MyCmd :echo 'My command'
|
||||
|
Reference in New Issue
Block a user