comparison src/testdir/test_marks.vim @ 18784:7b57a80f70f6 v8.1.2381

patch 8.1.2381: not all register related code is covered by tests Commit: https://github.com/vim/vim/commit/54c8d229f54e36e89fcd5d84e523fd894d018024 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 2 20:41:39 2019 +0100 patch 8.1.2381: not all register related code is covered by tests Problem: Not all register related code is covered by tests. Solution: Add more test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5301)
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Dec 2019 20:45:03 +0100
parents 6839f99d2269
children de2d1820215a
comparison
equal deleted inserted replaced
18783:ee76aada926d 18784:7b57a80f70f6
172 func Test_mark_error() 172 func Test_mark_error()
173 call assert_fails('mark', 'E471:') 173 call assert_fails('mark', 'E471:')
174 call assert_fails('mark xx', 'E488:') 174 call assert_fails('mark xx', 'E488:')
175 call assert_fails('mark _', 'E191:') 175 call assert_fails('mark _', 'E191:')
176 endfunc 176 endfunc
177
178 " Test for :lockmarks when pasting content
179 func Test_lockmarks_with_put()
180 new
181 call append(0, repeat(['sky is blue'], 4))
182 normal gg
183 1,2yank r
184 put r
185 normal G
186 lockmarks put r
187 call assert_equal(2, line("'["))
188 call assert_equal(3, line("']"))
189
190 bwipe!
191 endfunc
192
193 " vim: shiftwidth=2 sts=2 expandtab