1
0
forked from aniani/vim

patch 8.2.0531: various errors not tested

Problem:    Various errors not tested.
Solution:   Add tests. (Yegappan Lakshmanan, closes #5895)
This commit is contained in:
Bram Moolenaar
2020-04-08 19:48:56 +02:00
parent a65c288134
commit 476a613135
6 changed files with 357 additions and 160 deletions

View File

@@ -87,4 +87,10 @@ func Test_source_autocmd_sfile()
call delete('Xscript.vim')
endfunc
func Test_source_error()
call assert_fails('scriptencoding utf-8', 'E167:')
call assert_fails('finish', 'E168:')
call assert_fails('scriptversion 2', 'E984:')
endfunc
" vim: shiftwidth=2 sts=2 expandtab