mirror of
https://github.com/neovim/neovim.git
synced 2026-08-03 22:28:43 +00:00
vim-patch:8.2.0261: some code not covered by tests
Problem: Some code not covered by tests.
Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5645)
f0cee1971f
Cherry-pick Test_bunload_with_offset() from patch 8.2.0243
This commit is contained in:
@@ -2748,6 +2748,23 @@ func Test_normal_gk()
|
||||
set cpoptions& number& numberwidth&
|
||||
endfunc
|
||||
|
||||
" Test for cursor movement with '-' in 'cpoptions'
|
||||
func Test_normal_cpo_minus()
|
||||
throw 'Skipped: Nvim does not support cpoptions flag "-"'
|
||||
new
|
||||
call setline(1, ['foo', 'bar', 'baz'])
|
||||
let save_cpo = &cpo
|
||||
set cpo+=-
|
||||
call assert_beeps('normal 10j')
|
||||
call assert_equal(1, line('.'))
|
||||
normal G
|
||||
call assert_beeps('normal 10k')
|
||||
call assert_equal(3, line('.'))
|
||||
call assert_fails(10, 'E16:')
|
||||
let &cpo = save_cpo
|
||||
close!
|
||||
endfunc
|
||||
|
||||
" Some commands like yy, cc, dd, >>, << and !! accept a count after
|
||||
" typing the first letter of the command.
|
||||
func Test_normal_count_after_operator()
|
||||
|
||||
Reference in New Issue
Block a user