comparison src/testdir/test_normal.vim @ 19407:2f4be7ca1b1b v8.2.0261

patch 8.2.0261: some code not covered by tests Commit: https://github.com/vim/vim/commit/f0cee1971f5258ce61f8a4e6a04d35c1e625bb01 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 16 13:33:56 2020 +0100 patch 8.2.0261: some code not covered by tests Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5645)
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Feb 2020 13:45:04 +0100
parents 068337e86133
children 67fbe280a502
comparison
equal deleted inserted replaced
19406:9f499efdf2aa 19407:2f4be7ca1b1b
2703 call assert_equal(76, col('.')) 2703 call assert_equal(76, col('.'))
2704 bw! 2704 bw!
2705 bw! 2705 bw!
2706 set cpoptions& number& numberwidth& 2706 set cpoptions& number& numberwidth&
2707 endfunc 2707 endfunc
2708
2709 " Test for cursor movement with '-' in 'cpoptions'
2710 func Test_normal_cpo_minus()
2711 new
2712 call setline(1, ['foo', 'bar', 'baz'])
2713 let save_cpo = &cpo
2714 set cpo+=-
2715 call assert_beeps('normal 10j')
2716 call assert_equal(1, line('.'))
2717 normal G
2718 call assert_beeps('normal 10k')
2719 call assert_equal(3, line('.'))
2720 call assert_fails(10, 'E16:')
2721 let &cpo = save_cpo
2722 close!
2723 endfunc