mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Add test for files with leading dash.
This commit is contained in:
@@ -167,6 +167,20 @@ function Test_filename_with_square_brackets()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
function Test_filename_leading_dash()
|
||||||
|
call system('touch -- -fixture.txt && git add -- -fixture.txt')
|
||||||
|
edit -fixture.txt
|
||||||
|
normal ggo*
|
||||||
|
call s:trigger_gitgutter()
|
||||||
|
|
||||||
|
let expected = [
|
||||||
|
\ 'line=1 id=3000 name=GitGutterLineAdded',
|
||||||
|
\ 'line=2 id=3001 name=GitGutterLineAdded'
|
||||||
|
\ ]
|
||||||
|
call assert_equal(expected, s:signs('-fixture.txt'))
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
" FIXME: this test fails when it is the first (or only) test to be run
|
" FIXME: this test fails when it is the first (or only) test to be run
|
||||||
function Test_follow_symlink()
|
function Test_follow_symlink()
|
||||||
let tmp = 'symlink'
|
let tmp = 'symlink'
|
||||||
|
|||||||
Reference in New Issue
Block a user