comparison src/testdir/test_normal.vim @ 19471:cb73f4ae6b7c v8.2.0293

patch 8.2.0293: various Ex commands not sufficiently tested Commit: https://github.com/vim/vim/commit/818fc9ad143911b2faa0d7cee86724aa70a02080 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 21 17:54:45 2020 +0100 patch 8.2.0293: various Ex commands not sufficiently tested Problem: Various Ex commands not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5673)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Feb 2020 18:00:05 +0100
parents 67fbe280a502
children 9c15be376631
comparison
equal deleted inserted replaced
19470:ddc2e7caff46 19471:cb73f4ae6b7c
2719 call assert_equal(3, line('.')) 2719 call assert_equal(3, line('.'))
2720 call assert_fails(10, 'E16:') 2720 call assert_fails(10, 'E16:')
2721 let &cpo = save_cpo 2721 let &cpo = save_cpo
2722 close! 2722 close!
2723 endfunc 2723 endfunc
2724
2725 " Test for using : to run a multi-line Ex command in operator pending mode
2726 func Test_normal_yank_with_excmd()
2727 new
2728 call setline(1, ['foo', 'bar', 'baz'])
2729 let @a = ''
2730 call feedkeys("\"ay:if v:true\<CR>normal l\<CR>endif\<CR>", 'xt')
2731 call assert_equal('f', @a)
2732 close!
2733 endfunc