diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-01 16:53:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-01 16:53:09 +0100 |
commit | 0546d7df13b041833121b2d56036e1c62ea3b0c1 (patch) | |
tree | 7cd0a13998c53f0d310c8d6478cb19a2ae628dc6 /src/testdir/test_ex_mode.vim | |
parent | 41fe061753923986e6676424132960d970bb2a76 (diff) | |
download | vim-git-0546d7df13b041833121b2d56036e1c62ea3b0c1.tar.gz |
patch 8.2.0342: some code in ex_getln.c not covered by testsv8.2.0342
Problem: Some code in ex_getln.c not covered by tests.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5717)
Diffstat (limited to 'src/testdir/test_ex_mode.vim')
-rw-r--r-- | src/testdir/test_ex_mode.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim index 91ba012e1..e88bdf530 100644 --- a/src/testdir/test_ex_mode.vim +++ b/src/testdir/test_ex_mode.vim @@ -49,6 +49,8 @@ func Test_ex_mode() call assert_equal([' foo', ' foo'], Ex(" foo\<C-d>"), e) call assert_equal(['foo', ' foo0'], Ex(" foo0\<C-d>"), e) call assert_equal(['foo', ' foo^'], Ex(" foo^\<C-d>"), e) + call assert_equal(['foo', 'foo'], + \ Ex("\<BS>\<C-H>\<Del>foo"), e) endfor set sw& @@ -128,4 +130,13 @@ func Test_Ex_escape_enter() call assert_equal("a\rb", l) endfunc +" Test for :append! command in Ex mode +func Test_Ex_append() + new + call setline(1, "\t abc") + call feedkeys("Qappend!\npqr\nxyz\n.\nvisual\n", 'xt') + call assert_equal(["\t abc", "\t pqr", "\t xyz"], getline(1, '$')) + close! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |