Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 10464:ce8ef728a12e v8.0.0125
commit https://github.com/vim/vim/commit/eaaa9bbda6ec0a8589a9b23720f95bffe01dc267
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 9 18:42:20 2016 +0100
patch 8.0.0125
Problem: Not enough testing for entering Ex commands.
Solution: Add test for CTRL-\ e {expr}. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 09 Dec 2016 18:45:04 +0100 |
parents | 3fab458a54ad |
children | dc9326b58c33 |
comparison
equal
deleted
inserted
replaced
10463:bd4bcb516156 | 10464:ce8ef728a12e |
---|---|
213 call feedkeys("fy:aaa veryl\<C-R>\<C-W> bbb\<C-B>\"\<CR>", 'tx') | 213 call feedkeys("fy:aaa veryl\<C-R>\<C-W> bbb\<C-B>\"\<CR>", 'tx') |
214 call assert_equal('"aaa verylongword bbb', @:) | 214 call assert_equal('"aaa verylongword bbb', @:) |
215 | 215 |
216 call feedkeys("f;:aaa \<C-R>\<C-A> bbb\<C-B>\"\<CR>", 'tx') | 216 call feedkeys("f;:aaa \<C-R>\<C-A> bbb\<C-B>\"\<CR>", 'tx') |
217 call assert_equal('"aaa a;b-c*d bbb', @:) | 217 call assert_equal('"aaa a;b-c*d bbb', @:) |
218 | |
219 call feedkeys(":\<C-\>etoupper(getline(1))\<CR>\<C-B>\"\<CR>", 'tx') | |
220 call assert_equal('"ASDF.X /TMP/SOME VERYLONGWORD A;B-C*D ', @:) | |
218 bwipe! | 221 bwipe! |
219 endfunc | 222 endfunc |
223 | |
224 func Test_remove_char_in_cmdline() | |
225 call feedkeys(":abc def\<S-Left>\<Del>\<C-B>\"\<CR>", 'tx') | |
226 call assert_equal('"abc ef', @:) | |
227 | |
228 call feedkeys(":abc def\<S-Left>\<BS>\<C-B>\"\<CR>", 'tx') | |
229 call assert_equal('"abcdef', @:) | |
230 | |
231 call feedkeys(":abc def ghi\<S-Left>\<C-W>\<C-B>\"\<CR>", 'tx') | |
232 call assert_equal('"abc ghi', @:) | |
233 | |
234 call feedkeys(":abc def\<S-Left>\<C-U>\<C-B>\"\<CR>", 'tx') | |
235 call assert_equal('"def', @:) | |
236 endfunc |