Add test for dos noeol

See #862.
This commit is contained in:
Andy Stewart
2023-06-16 09:53:57 +01:00
parent 422e4caf79
commit 4a7ca061af
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
a
b
c
d
e
f
g

View File

@@ -59,6 +59,7 @@ function SetUp()
\ " && cp ../fixture.foo .". \ " && cp ../fixture.foo .".
\ " && cp ../fixture.txt .". \ " && cp ../fixture.txt .".
\ " && cp ../fixture_dos.txt .". \ " && cp ../fixture_dos.txt .".
\ " && cp ../fixture_dos_noeol.txt .".
\ " && git add . && git commit -m 'initial'". \ " && git add . && git commit -m 'initial'".
\ " && git config diff.mnemonicPrefix false") \ " && git config diff.mnemonicPrefix false")
execute ':cd' s:test_repo execute ':cd' s:test_repo
@@ -408,6 +409,12 @@ function Test_preview_dos()
endfunction endfunction
function Test_dos_noeol()
edit! fixture_dos_noeol.txt
GitGutter
call s:assert_signs([], 'fixture_dos_noeol.txt')
endfunction
function Test_hunk_stage() function Test_hunk_stage()