neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 4f10e56cc5f2cb91337790ddc93e5fdeaefd5c2d
parent 0f3fef9bab31d8e61a8a1a72eef4afbbac60e17a
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 12 Sep 2025 10:43:11 +0800

test(old): reorder test_diffmode.vim to match upstream (#35726)


Diffstat:
Mtest/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 @@ -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!