install.fairie/dotfiles/.vim/plugged/vim-devicons/test/fileformat.vim
Git E2E Dev Test Username e30fca43b3 git subrepo clone (merge) https://github.com/ryanoasis/vim-devicons.git ./dotfiles/.vim/plugged/vim-devicons
subrepo:
  subdir:   "dotfiles/.vim/plugged/vim-devicons"
  merged:   "71f239af2"
upstream:
  origin:   "https://github.com/ryanoasis/vim-devicons.git"
  branch:   "master"
  commit:   "71f239af2"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:31 -04:00

29 lines
841 B
VimL

scriptencoding utf-8
" Please use nerd-font if you watch icon-font
let s:suite = themis#suite('WebDevIconsGetFileFormatSymbol')
let s:assert = themis#helper('assert')
function! s:suite.UnixIcon()
set fileformat=unix
let os = system('uname -a')
if os =~# 'Darwin'
call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '')
" It may return Ubuntu because github-actions's OS is Ubuntu
elseif os =~# 'Ubuntu'
call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '')
else
call s:assert.skip('Skip testing except for Ubuntu and Mac.')
endif
endfunction
function! s:suite.WindowsIcon()
set fileformat=dos
call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '')
endfunction
function! s:suite.MacIcon()
set fileformat=mac
call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '')
endfunction