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

@@ -3207,6 +3207,13 @@ func Test_normal_delete_cmd()
" delete to a readonly register
call setline(1, ['abcd'])
call assert_beeps('normal ":d2l')
" D and d with 'nomodifiable'
call setline(1, ['abcd'])
setlocal nomodifiable
call assert_fails('normal D', 'E21:')
call assert_fails('normal d$', 'E21:')
close!
endfunc