From 4f10e56cc5f2cb91337790ddc93e5fdeaefd5c2d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 12 Sep 2025 10:43:11 +0800 Subject: [PATCH] test(old): reorder test_diffmode.vim to match upstream (#35726) --- test/old/testdir/test_diffmode.vim | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/old/testdir/test_diffmode.vim b/test/old/testdir/test_diffmode.vim index 475a9e3f1d..62e57bf42b 100644 --- a/test/old/testdir/test_diffmode.vim +++ b/test/old/testdir/test_diffmode.vim @@ -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!