comparison src/testdir/test_visual.vim @ 19852:12518b40c161 v8.2.0482

patch 8.2.0482: channel and sandbox code not sufficiently tested Commit: https://github.com/vim/vim/commit/ca68ae13114619df3e4c195b41ad0575516f5ff6 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 30 19:32:53 2020 +0200 patch 8.2.0482: channel and sandbox code not sufficiently tested Problem: Channel and sandbox code not sufficiently tested. Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5855)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Mar 2020 19:45:05 +0200
parents 0208534b8a84
children a4bd28e2cf1d
comparison
equal deleted inserted replaced
19851:e259e7903c55 19852:12518b40c161
265 \ ''], getline(1, '$')) 265 \ ''], getline(1, '$'))
266 norm! u 266 norm! u
267 call assert_equal(['abcd', 267 call assert_equal(['abcd',
268 \ 'efgh', 268 \ 'efgh',
269 \ 'ijkl'], getline(1, '$')) 269 \ 'ijkl'], getline(1, '$'))
270
271 " Test for truncating spaces in a newly added line using 'autoindent' if
272 " characters are not added to that line.
273 %d_
274 call setline(1, [' app', ' bee', ' cat'])
275 setlocal autoindent
276 exe "normal gg$gRt\n\nr"
277 call assert_equal([' apt', '', ' rat'], getline(1, '$'))
278
270 " clean up 279 " clean up
271 %d_ 280 %d_
272 set bs&vim 281 set bs&vim
273 endfunc 282 endfunc
274 283