comparison src/testdir/test_registers.vim @ 20178:2fb397573541

patch 8.2.0644: insufficient testing for invalid function arguments Commit: https://github.com/vim/vim/commit/99fa721944dda9d07c53c907c33466728df5c271 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 26 15:59:55 2020 +0200 patch 8.2.0644: insufficient testing for invalid function arguments Problem: Insufficient testing for invalid function arguments. Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5988)
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Apr 2020 16:00:04 +0200
parents 546bdeef35f1
children a672feb8fc4f
comparison
equal deleted inserted replaced
20177:b3cf5433ecad 20178:2fb397573541
257 257
258 " Test for inserting a multi-line register in the command line 258 " Test for inserting a multi-line register in the command line
259 call feedkeys(":\<C-R>r\<Esc>", 'xt') 259 call feedkeys(":\<C-R>r\<Esc>", 'xt')
260 call assert_equal("a\rb\r", histget(':', -1)) 260 call assert_equal("a\rb\r", histget(':', -1))
261 261
262 call assert_fails('let r = getreg("=", [])', 'E745:')
263 call assert_fails('let r = getreg("=", 1, [])', 'E745:')
262 enew! 264 enew!
263 endfunc 265 endfunc
264 266
265 func Test_set_register() 267 func Test_set_register()
266 call assert_fails("call setreg('#', 200)", 'E86:') 268 call assert_fails("call setreg('#', 200)", 'E86:')