diff options
Diffstat (limited to '.vim/pack/vendor/start/vim-devicons/test')
4 files changed, 413 insertions, 0 deletions
diff --git a/.vim/pack/vendor/start/vim-devicons/test/.themisrc b/.vim/pack/vendor/start/vim-devicons/test/.themisrc new file mode 100644 index 0000000..f59497a --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/test/.themisrc | |||
@@ -0,0 +1 @@ | |||
filetype plugin on | |||
diff --git a/.vim/pack/vendor/start/vim-devicons/test/default_setting.vim b/.vim/pack/vendor/start/vim-devicons/test/default_setting.vim new file mode 100644 index 0000000..b379948 --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/test/default_setting.vim | |||
@@ -0,0 +1,39 @@ | |||
1 | scriptencoding utf-8 | ||
2 | |||
3 | let s:suite = themis#suite('Webdevicons-default-value') | ||
4 | let s:assert = themis#helper('assert') | ||
5 | |||
6 | function! s:suite.ExtensionConfig() | ||
7 | call s:assert.equals(g:webdevicons_enable, 1) | ||
8 | call s:assert.equals(g:webdevicons_enable_nerdtree, 1) | ||
9 | call s:assert.equals(g:webdevicons_enable_unite, 1) | ||
10 | call s:assert.equals(g:webdevicons_enable_denite, 1) | ||
11 | call s:assert.equals(g:webdevicons_enable_vimfiler, 1) | ||
12 | call s:assert.equals(g:webdevicons_enable_ctrlp, 1) | ||
13 | call s:assert.equals(g:webdevicons_enable_airline_tabline, 1) | ||
14 | call s:assert.equals(g:webdevicons_enable_airline_statusline, 1) | ||
15 | call s:assert.equals(g:webdevicons_enable_airline_statusline_fileformat_symbols, 1) | ||
16 | call s:assert.equals(g:webdevicons_enable_flagship_statusline, 1) | ||
17 | call s:assert.equals(g:webdevicons_enable_flagship_statusline_fileformat_symbols, 1) | ||
18 | call s:assert.equals(g:webdevicons_enable_startify, 1) | ||
19 | call s:assert.equals(g:webdevicons_conceal_nerdtree_brackets, 1) | ||
20 | endfunction | ||
21 | |||
22 | function! s:suite.ConfigOptions() | ||
23 | call s:assert.equals(g:DevIconsAppendArtifactFix, 0) | ||
24 | call s:assert.equals(g:DevIconsArtifactFixChar, ' ') | ||
25 | call s:assert.equals(g:WebDevIconsUnicodeDecorateFileNodes, 1) | ||
26 | call s:assert.equals(g:WebDevIconsUnicodeDecorateFolderNodes, 1) | ||
27 | call s:assert.equals(g:DevIconsEnableFoldersOpenClose, 0) | ||
28 | call s:assert.equals(g:DevIconsEnableFolderPatternMatching, 1) | ||
29 | call s:assert.equals(g:DevIconsEnableFolderExtensionPatternMatching, 0) | ||
30 | call s:assert.equals(1, g:WebDevIconsUnicodeDecorateFolderNodesExactMatches, 1) | ||
31 | call s:assert.equals(1, g:WebDevIconsUnicodeGlyphDoubleWidth, 1) | ||
32 | call s:assert.equals(g:WebDevIconsNerdTreeBeforeGlyphPadding, ' ') | ||
33 | call s:assert.equals(g:WebDevIconsNerdTreeAfterGlyphPadding, ' ') | ||
34 | call s:assert.equals(g:WebDevIconsNerdTreeGitPluginForceVAlign, 1) | ||
35 | call s:assert.equals(g:NERDTreeUpdateOnCursorHold, 1) " Obsolete: for backward compatibility | ||
36 | call s:assert.equals(g:NERDTreeGitStatusUpdateOnCursorHold, 1) | ||
37 | call s:assert.equals(g:WebDevIconsTabAirLineBeforeGlyphPadding, ' ') | ||
38 | call s:assert.equals(g:WebDevIconsTabAirLineAfterGlyphPadding, '') | ||
39 | endfunction | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/test/fileformat.vim b/.vim/pack/vendor/start/vim-devicons/test/fileformat.vim new file mode 100644 index 0000000..170a27b --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/test/fileformat.vim | |||
@@ -0,0 +1,29 @@ | |||
1 | scriptencoding utf-8 | ||
2 | |||
3 | " Please use nerd-font if you watch icon-font | ||
4 | |||
5 | let s:suite = themis#suite('WebDevIconsGetFileFormatSymbol') | ||
6 | let s:assert = themis#helper('assert') | ||
7 | |||
8 | function! s:suite.UnixIcon() | ||
9 | set fileformat=unix | ||
10 | let os = system('uname -a') | ||
11 | if os =~# 'Darwin' | ||
12 | call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '') | ||
13 | " It may return Ubuntu because github-actions's OS is Ubuntu | ||
14 | elseif os =~# 'Ubuntu' | ||
15 | call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '') | ||
16 | else | ||
17 | call s:assert.skip('Skip testing except for Ubuntu and Mac.') | ||
18 | endif | ||
19 | endfunction | ||
20 | |||
21 | function! s:suite.WindowsIcon() | ||
22 | set fileformat=dos | ||
23 | call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '') | ||
24 | endfunction | ||
25 | |||
26 | function! s:suite.MacIcon() | ||
27 | set fileformat=mac | ||
28 | call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '') | ||
29 | endfunction | ||
diff --git a/.vim/pack/vendor/start/vim-devicons/test/filetype.vim b/.vim/pack/vendor/start/vim-devicons/test/filetype.vim new file mode 100644 index 0000000..3669ad9 --- /dev/null +++ b/.vim/pack/vendor/start/vim-devicons/test/filetype.vim | |||
@@ -0,0 +1,344 @@ | |||
1 | scriptencoding utf-8 | ||
2 | |||
3 | " Please use nerd-font if you watch icon-font | ||
4 | |||
5 | let s:suite = themis#suite('WebDevIconsGetFileTypeSymbol') | ||
6 | let s:assert = themis#helper('assert') | ||
7 | |||
8 | function! s:Assert(filename, icon) | ||
9 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(a:filename), a:icon) | ||
10 | endfunction | ||
11 | |||
12 | function! s:suite.NoArgument_GetDefaultIcon() | ||
13 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
14 | endfunction | ||
15 | |||
16 | function! s:suite.__OneArgument_VimIcon__() | ||
17 | let targetfilenames = ['.vimrc', 'vimrc', '.gvimrc', '_gvimrc', 'test.vim'] | ||
18 | let expecticon = '' | ||
19 | let child = themis#suite('OneArgument_VimIcon') | ||
20 | |||
21 | for targetfilename in targetfilenames | ||
22 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
23 | endfor | ||
24 | endfunction | ||
25 | |||
26 | function! s:suite.__OneArgument_RubyIcon__() | ||
27 | let targetfilenames = ['test.rb', 'rakefile', 'RAKEFILE', 'Gemfile', 'config.ru'] | ||
28 | let expecticon = '' | ||
29 | let child = themis#suite('OneArgument_RubyIcon') | ||
30 | |||
31 | for targetfilename in targetfilenames | ||
32 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
33 | endfor | ||
34 | endfunction | ||
35 | |||
36 | function! s:suite.__OneArgument_MarkDownIcon__() | ||
37 | let targetfilenames = ['test.md', 'test.markdown', 'test.mdx', 'test.rmd'] | ||
38 | let expecticon = '' | ||
39 | let child = themis#suite('OneArgument_MarkDownIcon') | ||
40 | |||
41 | for targetfilename in targetfilenames | ||
42 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
43 | endfor | ||
44 | endfunction | ||
45 | |||
46 | function! s:suite.__OneArgument_PythonIcon__() | ||
47 | let targetfilenames = ['test.py', 'test.pyc', 'test.pyo', 'test.pyd'] | ||
48 | let expecticon = '' | ||
49 | let child = themis#suite('OneArgument_PythonIcon') | ||
50 | |||
51 | for targetfilename in targetfilenames | ||
52 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
53 | endfor | ||
54 | endfunction | ||
55 | |||
56 | function! s:suite.__OneArgument_ShellIcon__() | ||
57 | let targetfilenames = ['test.sh', 'test.fish', 'test.bash', 'test.ksh', 'test.csh', 'test.awk', 'test.ps1'] | ||
58 | let expecticon = '' | ||
59 | let child = themis#suite('OneArgument_ShellIcon') | ||
60 | |||
61 | for targetfilename in targetfilenames | ||
62 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
63 | endfor | ||
64 | endfunction | ||
65 | |||
66 | function! s:suite.__OneArgument_DBIcon__() | ||
67 | let targetfilenames = ['test.db', 'test.sql', 'test.dump'] | ||
68 | let expecticon = '' | ||
69 | let child = themis#suite('OneArgument_DBIcon') | ||
70 | |||
71 | for targetfilename in targetfilenames | ||
72 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
73 | endfor | ||
74 | endfunction | ||
75 | |||
76 | function! s:suite.__OneArgument_RustIcon__() | ||
77 | let targetfilenames = ['test.rs', 'test.rlib'] | ||
78 | let expecticon = '' | ||
79 | let child = themis#suite('OneArgument_RustIcon') | ||
80 | |||
81 | for targetfilename in targetfilenames | ||
82 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
83 | endfor | ||
84 | endfunction | ||
85 | |||
86 | function! s:suite.__OneArgument_DockerIcon__() | ||
87 | let targetfilenames = ['Dockerfile', 'docker-compose.yml'] | ||
88 | let expecticon = '' | ||
89 | let child = themis#suite('OneArgument_DockerIcon') | ||
90 | |||
91 | for targetfilename in targetfilenames | ||
92 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
93 | endfor | ||
94 | endfunction | ||
95 | |||
96 | function! s:suite.__OneArgument_JavaScriptIcon__() | ||
97 | let targetfilenames = ['test.js', 'test.mjs'] | ||
98 | let expecticon = '' | ||
99 | let child = themis#suite('OneArgument_JavaScriptIcon') | ||
100 | |||
101 | for targetfilename in targetfilenames | ||
102 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
103 | endfor | ||
104 | endfunction | ||
105 | |||
106 | function! s:suite.__OneArgument_ReactIcon__() | ||
107 | let targetfilenames = ['test.jsx', 'test.tsx', 'react.jsx'] | ||
108 | let expecticon = '' | ||
109 | let child = themis#suite('OneArgument_ReactIcon') | ||
110 | |||
111 | for targetfilename in targetfilenames | ||
112 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
113 | endfor | ||
114 | endfunction | ||
115 | |||
116 | function! s:suite.__OneArgument_JsonIcon__() | ||
117 | let targetfilenames = ['test.json', 'test.webmanifest'] | ||
118 | let expecticon = '' | ||
119 | let child = themis#suite('OneArgument_JsonIcon') | ||
120 | |||
121 | for targetfilename in targetfilenames | ||
122 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
123 | endfor | ||
124 | endfunction | ||
125 | |||
126 | function! s:suite.__OneArgument_GearIcon__() | ||
127 | let targetfilenames = ['.DS_Store', 'Makefile', 'test.mk', '.bashrc', '.zshrc', '.gitignore', '.gitattributes', 'cmakelists.txt', 'test.yaml', 'test.yml', 'test.toml', 'test.bat'] | ||
128 | let expecticon = '' | ||
129 | let child = themis#suite('OneArgument_GearIcon') | ||
130 | |||
131 | for targetfilename in targetfilenames | ||
132 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
133 | endfor | ||
134 | endfunction | ||
135 | |||
136 | function! s:suite.__OneArgument_ErlangIcon__() | ||
137 | let targetfilenames = ['test.erl', 'test.hrl'] | ||
138 | let expecticon = '' | ||
139 | let child = themis#suite('OneArgument_ErlangIcon') | ||
140 | |||
141 | for targetfilename in targetfilenames | ||
142 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
143 | endfor | ||
144 | endfunction | ||
145 | |||
146 | function! s:suite.__OneArgument_SwiftIcon__() | ||
147 | let targetfilenames = ['test.swift', 'test.xcplayground'] | ||
148 | let expecticon = '' | ||
149 | let child = themis#suite('OneArgument_SwiftIcon') | ||
150 | |||
151 | for targetfilename in targetfilenames | ||
152 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
153 | endfor | ||
154 | endfunction | ||
155 | |||
156 | function! s:suite.__OneArgument_HaskellIcon__() | ||
157 | let targetfilenames = ['test.hs', 'test.lhs'] | ||
158 | let expecticon = '' | ||
159 | let child = themis#suite('OneArgument_HaskellIcon') | ||
160 | |||
161 | for targetfilename in targetfilenames | ||
162 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
163 | endfor | ||
164 | endfunction | ||
165 | |||
166 | function! s:suite.__OneArgument_CppIcon__() | ||
167 | let targetfilenames = ['test.cpp', 'test.c++', 'test.cp', 'test.cxx', 'test.cc'] | ||
168 | let expecticon = '' | ||
169 | let child = themis#suite('OneArgument_C++Icon') | ||
170 | |||
171 | for targetfilename in targetfilenames | ||
172 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
173 | endfor | ||
174 | endfunction | ||
175 | |||
176 | function! s:suite.__OneArgument_ElixirIcon__() | ||
177 | let targetfilenames = ['test.ex', 'test.exs', 'test.eex', 'test.leex', 'test.heex'] | ||
178 | let expecticon = '' | ||
179 | let child = themis#suite('OneArgument_ElixirIcon') | ||
180 | |||
181 | for targetfilename in targetfilenames | ||
182 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
183 | endfor | ||
184 | endfunction | ||
185 | |||
186 | function! s:suite.__OneArgument_PerlIcon__() | ||
187 | let targetfilenames = ['test.pl', 'test.pm', 'test.t'] | ||
188 | let expecticon = '' | ||
189 | let child = themis#suite('OneArgument_PerlIcon') | ||
190 | |||
191 | for targetfilename in targetfilenames | ||
192 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
193 | endfor | ||
194 | endfunction | ||
195 | |||
196 | function! s:suite.__OneArgument_FSharpIcon__() | ||
197 | let targetfilenames = ['test.fs', 'test.fsx', 'test.fsi', 'test.fsscript'] | ||
198 | let expecticon = '' | ||
199 | let child = themis#suite('OneArgument_FSharpIcon') | ||
200 | |||
201 | for targetfilename in targetfilenames | ||
202 | let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) | ||
203 | endfor | ||
204 | endfunction | ||
205 | |||
206 | function! s:suite.OneArgument_GetTypeScriptIcon() | ||
207 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.ts'), '') | ||
208 | endfunction | ||
209 | |||
210 | function! s:suite.OneArgument_GetVueIcon() | ||
211 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.vue'), '﵂') | ||
212 | endfunction | ||
213 | |||
214 | function! s:suite.OneArgument_GetNodeModuleIcon() | ||
215 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('node_modules'), '') | ||
216 | endfunction | ||
217 | |||
218 | function! s:suite.OneArgument_GetDropboxIcon() | ||
219 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('Dropbox'), '') | ||
220 | endfunction | ||
221 | |||
222 | function! s:suite.OneArgument_GetRIcon() | ||
223 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.r'), 'ﳒ') | ||
224 | endfunction | ||
225 | |||
226 | function! s:suite.OneArgument_GetLuaIcon() | ||
227 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.lua'), '') | ||
228 | endfunction | ||
229 | |||
230 | function! s:suite.OneArgument_GetJavaIcon() | ||
231 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.java'), '') | ||
232 | endfunction | ||
233 | |||
234 | function! s:suite.OneArgument_GetCIcon() | ||
235 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.c'), '') | ||
236 | endfunction | ||
237 | |||
238 | function! s:suite.OneArgument_GetCSSIcon() | ||
239 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.cs'), '') | ||
240 | endfunction | ||
241 | |||
242 | function! s:suite.OneArgument_GetCSharpIcon() | ||
243 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.cs'), '') | ||
244 | endfunction | ||
245 | |||
246 | function! s:suite.OneArgument_GetElmIcon() | ||
247 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.elm'), '') | ||
248 | endfunction | ||
249 | |||
250 | function! s:suite.OneArgument_GetRssIcon() | ||
251 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.rss'), '') | ||
252 | endfunction | ||
253 | |||
254 | function! s:suite.OneArgument_GetDartIcon() | ||
255 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.dart'), '') | ||
256 | endfunction | ||
257 | |||
258 | function! s:suite.OneArgument_GetSolidityIcon() | ||
259 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.sol'), 'ﲹ') | ||
260 | endfunction | ||
261 | |||
262 | function! s:suite.OneArgument_GetGoIcon() | ||
263 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.go'), '') | ||
264 | endfunction | ||
265 | |||
266 | function! s:suite.OneArgument_GetPhpIcon() | ||
267 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.php'),'') | ||
268 | endfunction | ||
269 | |||
270 | function! s:suite.OneArgument_GetScalaIcon() | ||
271 | call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.scala'), '') | ||
272 | endfunction | ||
273 | |||
274 | function! s:suite.OneArgument_GetTexIcon() | ||
275 | call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.tex'), 'ﭨ') | ||
276 | endfunction | ||
277 | |||
278 | function! s:suite.OneArgument_GetLicenseIcon() | ||
279 | call s:assert.equals( WebDevIconsGetFileTypeSymbol('LICENSE'), '') | ||
280 | endfunction | ||
281 | |||
282 | function! s:suite.OneArgument_GetRobotIcon() | ||
283 | call s:assert.equals( WebDevIconsGetFileTypeSymbol('robots.txt'), 'ﮧ') | ||
284 | endfunction | ||
285 | |||
286 | function! s:suite.OneArgument_PemIcon() | ||
287 | call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.pem'), '') | ||
288 | endfunction | ||
289 | |||
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 | |||
306 | function! s:suite.NoArgument_OverWriteFileType_GetVimIcon() | ||
307 | set ft=vim | ||
308 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
309 | endfunction | ||
310 | |||
311 | function! s:suite.NoArgument_EditVimFile_GetVimIcon() | ||
312 | edit! test.vim | ||
313 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
314 | endfunction | ||
315 | |||
316 | function! s:suite.NoArgument_Editvimrc_GetVimIcon() | ||
317 | edit! vimrc | ||
318 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
319 | endfunction | ||
320 | |||
321 | function! s:suite.NoArgument_EditPythonFile_GetPythonIcon() | ||
322 | edit! test.py | ||
323 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
324 | endfunction | ||
325 | |||
326 | function! s:suite.NoArgument_EditjavaScriptFile_GetjavaScriptIcon() | ||
327 | edit! test.js | ||
328 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
329 | endfunction | ||
330 | |||
331 | function! s:suite.NoArgument_EditRustFile_GetRustIcon() | ||
332 | edit! test.rs | ||
333 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
334 | endfunction | ||
335 | |||
336 | function! s:suite.NoArgument_EditMKFile_GetGearIcon() | ||
337 | edit! test.mk | ||
338 | call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '') | ||
339 | endfunction | ||
340 | |||
341 | function! s:suite.OneArgument_EditPythonFile_GetRubyIcon() | ||
342 | edit! test.py | ||
343 | call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.rb'), '') | ||
344 | endfunction | ||