@@ -9,6 +9,10 @@ function! s:Assert(filename, icon)
99 call s: assert .equals (WebDevIconsGetFileTypeSymbol (a: filename ), a: icon )
1010endfunction
1111
12+ function ! s: suite .NoArgument_GetDefaultIcon ()
13+ call s: assert .equals (WebDevIconsGetFileTypeSymbol (), ' ' )
14+ endfunction
15+
1216function ! s: suite .__OneArgument_VimIcon__ ()
1317 let targetfilenames = [' .vimrc' , ' vimrc' , ' .gvimrc' , ' _gvimrc' , ' test.vim' ]
1418 let expecticon = ' '
@@ -283,6 +287,22 @@ function! s:suite.OneArgument_PemIcon()
283287 call s: assert .equals ( WebDevIconsGetFileTypeSymbol (' test.pem' ), ' ' )
284288endfunction
285289
290+ function ! s: suite .TwoArgument_zero_GetFileIcon ()
291+ call s: assert .equals ( WebDevIconsGetFileTypeSymbol (' test.vim' , 0 ), ' ' )
292+ endfunction
293+
294+ function ! s: suite .TwoArgument_one_GetFolderIcon ()
295+ call s: assert .equals ( WebDevIconsGetFileTypeSymbol (' test.vim' , 1 ), ' ' )
296+ endfunction
297+
298+ function ! s: suite .TwoArgument_two_GetDefaultIcon ()
299+ call s: assert .equals ( WebDevIconsGetFileTypeSymbol (' test.vim' , 2 ), ' ' )
300+ endfunction
301+
302+ function ! s: suite .TwoArgument_string_GetFileTypeIcon ()
303+ call s: assert .equals ( WebDevIconsGetFileTypeSymbol (' test.php' , ' test.vim' ), ' ' )
304+ endfunction
305+
286306function ! s: suite .NoArgument_OverWriteFileType_GetVimIcon ()
287307 set ft = vim
288308 call s: assert .equals (WebDevIconsGetFileTypeSymbol (), ' ' )
0 commit comments