mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test/old: align with Vim #11096
This commit is contained in:
parent
8d68a37c5a
commit
c3ae5e1375
@ -2488,6 +2488,15 @@ func Test_normal_large_count()
|
|||||||
bwipe!
|
bwipe!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_delete_until_paragraph()
|
||||||
|
new
|
||||||
|
normal grádv}
|
||||||
|
call assert_equal('á', getline(1))
|
||||||
|
normal grád}
|
||||||
|
call assert_equal('', getline(1))
|
||||||
|
bwipe!
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Test for the gr (virtual replace) command
|
" Test for the gr (virtual replace) command
|
||||||
" Test for the bug fixed by 7.4.387
|
" Test for the bug fixed by 7.4.387
|
||||||
func Test_gr_command()
|
func Test_gr_command()
|
||||||
@ -2553,15 +2562,6 @@ func Test_nv_hat_count()
|
|||||||
%bwipeout!
|
%bwipeout!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_delete_until_paragraph()
|
|
||||||
new
|
|
||||||
normal grádv}
|
|
||||||
call assert_equal('á', getline(1))
|
|
||||||
normal grád}
|
|
||||||
call assert_equal('', getline(1))
|
|
||||||
bwipe!
|
|
||||||
endfunc
|
|
||||||
|
|
||||||
func Test_message_when_using_ctrl_c()
|
func Test_message_when_using_ctrl_c()
|
||||||
" Make sure no buffers are changed.
|
" Make sure no buffers are changed.
|
||||||
%bwipe!
|
%bwipe!
|
||||||
|
@ -69,18 +69,6 @@ function Test_window_cmd_wincmd_gf()
|
|||||||
augroup! test_window_cmd_wincmd_gf
|
augroup! test_window_cmd_wincmd_gf
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_next_split_all()
|
|
||||||
" This was causing an illegal memory access.
|
|
||||||
n x
|
|
||||||
norm axxx
|
|
||||||
split
|
|
||||||
split
|
|
||||||
s/x
|
|
||||||
s/x
|
|
||||||
all
|
|
||||||
bwipe!
|
|
||||||
endfunc
|
|
||||||
|
|
||||||
func Test_window_quit()
|
func Test_window_quit()
|
||||||
e Xa
|
e Xa
|
||||||
split Xb
|
split Xb
|
||||||
@ -502,6 +490,17 @@ func Test_window_newtab()
|
|||||||
%bw!
|
%bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_next_split_all()
|
||||||
|
" This was causing an illegal memory access.
|
||||||
|
n x
|
||||||
|
norm axxx
|
||||||
|
split
|
||||||
|
split
|
||||||
|
s/x
|
||||||
|
s/x
|
||||||
|
all
|
||||||
|
bwipe!
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Tests for adjusting window and contents
|
" Tests for adjusting window and contents
|
||||||
func GetScreenStr(row)
|
func GetScreenStr(row)
|
||||||
@ -541,6 +540,11 @@ func Test_window_contents()
|
|||||||
call test_garbagecollect_now()
|
call test_garbagecollect_now()
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_window_colon_command()
|
||||||
|
" This was reading invalid memory.
|
||||||
|
exe "norm! v\<C-W>:\<C-U>echo v:version"
|
||||||
|
endfunc
|
||||||
|
|
||||||
func Test_access_freed_mem()
|
func Test_access_freed_mem()
|
||||||
" This was accessing freed memory
|
" This was accessing freed memory
|
||||||
au * 0 vs xxx
|
au * 0 vs xxx
|
||||||
@ -837,9 +841,4 @@ func Test_winnr()
|
|||||||
only | tabonly
|
only | tabonly
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_window_colon_command()
|
|
||||||
" This was reading invalid memory.
|
|
||||||
exe "norm! v\<C-W>:\<C-U>echo v:version"
|
|
||||||
endfunc
|
|
||||||
|
|
||||||
" vim: shiftwidth=2 sts=2 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
Loading…
Reference in New Issue
Block a user