mirror of
https://github.com/neovim/neovim.git
synced 2026-02-18 09:28:33 +00:00
test(old): reorder test_diffmode.vim to match upstream (#35726)
This commit is contained in:
@@ -849,22 +849,6 @@ func Test_diff_nomodifiable()
|
||||
%bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_diff_filler()
|
||||
new
|
||||
call setline(1, [1, 2, 3, 'x', 4])
|
||||
diffthis
|
||||
vnew
|
||||
call setline(1, [1, 2, 'y', 'y', 3, 4])
|
||||
diffthis
|
||||
redraw
|
||||
|
||||
call assert_equal([0, 0, 0, 0, 0, 0, 0, 1, 0], map(range(-1, 7), 'v:val->diff_filler()'))
|
||||
wincmd w
|
||||
call assert_equal([0, 0, 0, 0, 2, 0, 0, 0], map(range(-1, 6), 'diff_filler(v:val)'))
|
||||
|
||||
%bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_diff_hlID()
|
||||
new
|
||||
call setline(1, [1, 2, 3, 'Yz', 'a dxxg',])
|
||||
@@ -910,6 +894,22 @@ func Test_diff_hlID()
|
||||
%bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_diff_filler()
|
||||
new
|
||||
call setline(1, [1, 2, 3, 'x', 4])
|
||||
diffthis
|
||||
vnew
|
||||
call setline(1, [1, 2, 'y', 'y', 3, 4])
|
||||
diffthis
|
||||
redraw
|
||||
|
||||
call assert_equal([0, 0, 0, 0, 0, 0, 0, 1, 0], map(range(-1, 7), 'v:val->diff_filler()'))
|
||||
wincmd w
|
||||
call assert_equal([0, 0, 0, 0, 2, 0, 0, 0], map(range(-1, 6), 'diff_filler(v:val)'))
|
||||
|
||||
%bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_diff_lastline()
|
||||
enew!
|
||||
only!
|
||||
|
||||
Reference in New Issue
Block a user