mirror of
https://github.com/vim/vim.git
synced 2025-10-17 07:44:28 -04:00
patch 8.2.1593: tests do not check the error number properly
Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
This commit is contained in:
@@ -35,12 +35,12 @@ func Test_mkdir_p()
|
||||
endtry
|
||||
" 'p' doesn't suppress real errors
|
||||
call writefile([], 'Xfile')
|
||||
call assert_fails('call mkdir("Xfile", "p")', 'E739')
|
||||
call assert_fails('call mkdir("Xfile", "p")', 'E739:')
|
||||
call delete('Xfile')
|
||||
call delete('Xmkdir', 'rf')
|
||||
call assert_equal(0, mkdir(test_null_string()))
|
||||
call assert_fails('call mkdir([])', 'E730')
|
||||
call assert_fails('call mkdir("abc", [], [])', 'E745')
|
||||
call assert_fails('call mkdir([])', 'E730:')
|
||||
call assert_fails('call mkdir("abc", [], [])', 'E745:')
|
||||
endfunc
|
||||
|
||||
func Test_line_continuation()
|
||||
|
Reference in New Issue
Block a user