1
0
forked from aniani/vim

patch 8.2.2592: code coverage could be improved

Problem:    Code coverage could be improved.
Solution:   Add a few more tests. (Dominique Pellé, closes #7957)
This commit is contained in:
Bram Moolenaar
2021-03-13 13:14:04 +01:00
parent c80f647512
commit 6fd367a97c
6 changed files with 38 additions and 0 deletions

View File

@@ -858,6 +858,21 @@ func Test_mps_latin1()
close!
endfunc
func Test_mps_error()
let encoding_save = &encoding
for e in ['utf-8', 'latin1']
exe 'set encoding=' .. e
call assert_fails('set mps=<:', 'E474:', e)
call assert_fails('set mps=:>', 'E474:', e)
call assert_fails('set mps=<>', 'E474:', e)
call assert_fails('set mps=<:>_', 'E474:', e)
endfor
let &encoding = encoding_save
endfunc
" Test for ra on multi-byte characters
func Test_ra_multibyte()
new