comparison 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
comparison
equal deleted inserted replaced
24100:37801c4fe1a4 24101:6d3dee0d7de5
3205 call assert_equal('', getline(1)) 3205 call assert_equal('', getline(1))
3206 set virtualedit& 3206 set virtualedit&
3207 " delete to a readonly register 3207 " delete to a readonly register
3208 call setline(1, ['abcd']) 3208 call setline(1, ['abcd'])
3209 call assert_beeps('normal ":d2l') 3209 call assert_beeps('normal ":d2l')
3210
3211 " D and d with 'nomodifiable'
3212 call setline(1, ['abcd'])
3213 setlocal nomodifiable
3214 call assert_fails('normal D', 'E21:')
3215 call assert_fails('normal d$', 'E21:')
3216
3210 close! 3217 close!
3211 endfunc 3218 endfunc
3212 3219
3213 " Test for deleting or changing characters across lines with 'whichwrap' 3220 " Test for deleting or changing characters across lines with 'whichwrap'
3214 " containing 's'. Should count <EOL> as one character. 3221 " containing 's'. Should count <EOL> as one character.