Mercurial > vim
diff src/testdir/test_normal.vim @ 24101:6d3dee0d7de5 v8.2.2592
patch 8.2.2592: code coverage could be improved
Commit: https://github.com/vim/vim/commit/6fd367a97c8653a2d734a38252c7d68d4b2ebaa7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 13 13:14:04 2021 +0100
patch 8.2.2592: code coverage could be improved
Problem: Code coverage could be improved.
Solution: Add a few more tests. (Dominique Pell?, closes https://github.com/vim/vim/issues/7957)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Mar 2021 13:15:03 +0100 |
parents | 93f90f2ff4e9 |
children | 3cdbce5ba73f |
line wrap: on
line diff
--- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -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