Mercurial > vim
comparison src/testdir/test_registers.vim @ 21246:ce655819d9ec v8.2.1174
patch 8.2.1174: no test for the "recording @x" message
Commit: https://github.com/vim/vim/commit/11a5b19a8ce543c258832ac53d771047f4e1061d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 10 21:17:51 2020 +0200
patch 8.2.1174: no test for the "recording @x" message
Problem: No test for the "recording @x" message.
Solution: Add a test. (Dominique Pell?, closes https://github.com/vim/vim/issues/6427)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 10 Jul 2020 21:30:04 +0200 |
parents | 136b33ce8216 |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
21245:05db4f0bf880 | 21246:ce655819d9ec |
---|---|
1 " | 1 " |
2 " Tests for register operations | 2 " Tests for register operations |
3 " | 3 " |
4 | 4 |
5 source check.vim | 5 source check.vim |
6 source view_util.vim | |
6 | 7 |
7 " This test must be executed first to check for empty and unset registers. | 8 " This test must be executed first to check for empty and unset registers. |
8 func Test_aaa_empty_reg_test() | 9 func Test_aaa_empty_reg_test() |
9 call assert_fails('normal @@', 'E748:') | 10 call assert_fails('normal @@', 'E748:') |
10 call assert_fails('normal @%', 'E354:') | 11 call assert_fails('normal @%', 'E354:') |
160 normal 2G$"ad{ | 161 normal 2G$"ad{ |
161 call assert_equal("\ntw", @a) | 162 call assert_equal("\ntw", @a) |
162 call assert_equal("\ntw", @1) | 163 call assert_equal("\ntw", @1) |
163 | 164 |
164 bwipe! | 165 bwipe! |
166 endfunc | |
167 | |
168 func Test_recording_status_in_ex_line() | |
169 norm qx | |
170 redraw! | |
171 call assert_equal('recording @x', Screenline(&lines)) | |
172 set shortmess=q | |
173 redraw! | |
174 call assert_equal('recording', Screenline(&lines)) | |
175 set shortmess& | |
176 norm q | |
177 redraw! | |
178 call assert_equal('', Screenline(&lines)) | |
165 endfunc | 179 endfunc |
166 | 180 |
167 " Check that replaying a typed sequence does not use an Esc and following | 181 " Check that replaying a typed sequence does not use an Esc and following |
168 " characters as an escape sequence. | 182 " characters as an escape sequence. |
169 func Test_recording_esc_sequence() | 183 func Test_recording_esc_sequence() |