Mercurial > vim
comparison src/testdir/test_registers.vim @ 22502:1503ecd54f8a v8.2.1799
patch 8.2.1799: some Normal mode commands not fully tested
Commit: https://github.com/vim/vim/commit/d1ad99b65470d3e754f6a0588a6b0dc2214a1eab
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 4 16:16:54 2020 +0200
patch 8.2.1799: some Normal mode commands not fully tested
Problem: Some Normal mode commands not fully tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7073)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Oct 2020 16:30:03 +0200 |
parents | b3751f4d3b26 |
children | f2a70fca3485 |
comparison
equal
deleted
inserted
replaced
22501:ce527f2034c0 | 22502:1503ecd54f8a |
---|---|
272 call assert_equal("a\rb\r", histget(':', -1)) | 272 call assert_equal("a\rb\r", histget(':', -1)) |
273 | 273 |
274 call assert_fails('let r = getreg("=", [])', 'E745:') | 274 call assert_fails('let r = getreg("=", [])', 'E745:') |
275 call assert_fails('let r = getreg("=", 1, [])', 'E745:') | 275 call assert_fails('let r = getreg("=", 1, [])', 'E745:') |
276 enew! | 276 enew! |
277 | |
278 " Using a register in operator-pending mode should fail | |
279 call assert_beeps('norm! c"') | |
277 endfunc | 280 endfunc |
278 | 281 |
279 func Test_set_register() | 282 func Test_set_register() |
280 call assert_fails("call setreg('#', 200)", 'E86:') | 283 call assert_fails("call setreg('#', 200)", 'E86:') |
281 | 284 |