summaryrefslogtreecommitdiff
path: root/.vim/pack/vendor/start/vim-devicons/test
diff options
context:
space:
mode:
Diffstat (limited to '.vim/pack/vendor/start/vim-devicons/test')
-rw-r--r--.vim/pack/vendor/start/vim-devicons/test/.themisrc1
-rw-r--r--.vim/pack/vendor/start/vim-devicons/test/default_setting.vim39
-rw-r--r--.vim/pack/vendor/start/vim-devicons/test/fileformat.vim29
-rw-r--r--.vim/pack/vendor/start/vim-devicons/test/filetype.vim344
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 @@
1scriptencoding utf-8
2
3let s:suite = themis#suite('Webdevicons-default-value')
4let s:assert = themis#helper('assert')
5
6function! 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)
20endfunction
21
22function! 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, '')
39endfunction
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 @@
1scriptencoding utf-8
2
3" Please use nerd-font if you watch icon-font
4
5let s:suite = themis#suite('WebDevIconsGetFileFormatSymbol')
6let s:assert = themis#helper('assert')
7
8function! 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
19endfunction
20
21function! s:suite.WindowsIcon()
22 set fileformat=dos
23 call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '')
24endfunction
25
26function! s:suite.MacIcon()
27 set fileformat=mac
28 call s:assert.equals(WebDevIconsGetFileFormatSymbol(), '')
29endfunction
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 @@
1scriptencoding utf-8
2
3" Please use nerd-font if you watch icon-font
4
5let s:suite = themis#suite('WebDevIconsGetFileTypeSymbol')
6let s:assert = themis#helper('assert')
7
8function! s:Assert(filename, icon)
9 call s:assert.equals(WebDevIconsGetFileTypeSymbol(a:filename), a:icon)
10endfunction
11
12function! s:suite.NoArgument_GetDefaultIcon()
13 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
14endfunction
15
16function! 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
24endfunction
25
26function! 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
34endfunction
35
36function! 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
44endfunction
45
46function! 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
54endfunction
55
56function! 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
64endfunction
65
66function! 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
74endfunction
75
76function! 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
84endfunction
85
86function! 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
94endfunction
95
96function! 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
104endfunction
105
106function! 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
114endfunction
115
116function! 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
124endfunction
125
126function! 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
134endfunction
135
136function! 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
144endfunction
145
146function! 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
154endfunction
155
156function! 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
164endfunction
165
166function! 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
174endfunction
175
176function! 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
184endfunction
185
186function! 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
194endfunction
195
196function! 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
204endfunction
205
206function! s:suite.OneArgument_GetTypeScriptIcon()
207 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.ts'), '')
208endfunction
209
210function! s:suite.OneArgument_GetVueIcon()
211 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.vue'), '﵂')
212endfunction
213
214function! s:suite.OneArgument_GetNodeModuleIcon()
215 call s:assert.equals(WebDevIconsGetFileTypeSymbol('node_modules'), '')
216endfunction
217
218function! s:suite.OneArgument_GetDropboxIcon()
219 call s:assert.equals(WebDevIconsGetFileTypeSymbol('Dropbox'), '')
220endfunction
221
222function! s:suite.OneArgument_GetRIcon()
223 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.r'), 'ﳒ')
224endfunction
225
226function! s:suite.OneArgument_GetLuaIcon()
227 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.lua'), '')
228endfunction
229
230function! s:suite.OneArgument_GetJavaIcon()
231 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.java'), '')
232endfunction
233
234function! s:suite.OneArgument_GetCIcon()
235 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.c'), '')
236endfunction
237
238function! s:suite.OneArgument_GetCSSIcon()
239 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.cs'), '')
240endfunction
241
242function! s:suite.OneArgument_GetCSharpIcon()
243 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.cs'), '')
244endfunction
245
246function! s:suite.OneArgument_GetElmIcon()
247 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.elm'), '')
248endfunction
249
250function! s:suite.OneArgument_GetRssIcon()
251 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.rss'), '')
252endfunction
253
254function! s:suite.OneArgument_GetDartIcon()
255 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.dart'), '')
256endfunction
257
258function! s:suite.OneArgument_GetSolidityIcon()
259 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.sol'), 'ﲹ')
260endfunction
261
262function! s:suite.OneArgument_GetGoIcon()
263 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.go'), '')
264endfunction
265
266function! s:suite.OneArgument_GetPhpIcon()
267 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.php'),'')
268endfunction
269
270function! s:suite.OneArgument_GetScalaIcon()
271 call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.scala'), '')
272endfunction
273
274function! s:suite.OneArgument_GetTexIcon()
275 call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.tex'), 'ﭨ')
276endfunction
277
278function! s:suite.OneArgument_GetLicenseIcon()
279 call s:assert.equals( WebDevIconsGetFileTypeSymbol('LICENSE'), '')
280endfunction
281
282function! s:suite.OneArgument_GetRobotIcon()
283 call s:assert.equals( WebDevIconsGetFileTypeSymbol('robots.txt'), 'ﮧ')
284endfunction
285
286function! s:suite.OneArgument_PemIcon()
287 call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.pem'), '')
288endfunction
289
290function! s:suite.TwoArgument_zero_GetFileIcon()
291 call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.vim', 0), '')
292endfunction
293
294function! s:suite.TwoArgument_one_GetFolderIcon()
295 call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.vim', 1), '')
296endfunction
297
298function! s:suite.TwoArgument_two_GetDefaultIcon()
299 call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.vim', 2), '')
300endfunction
301
302function! s:suite.TwoArgument_string_GetFileTypeIcon()
303 call s:assert.equals( WebDevIconsGetFileTypeSymbol('test.php', 'test.vim'), '')
304endfunction
305
306function! s:suite.NoArgument_OverWriteFileType_GetVimIcon()
307 set ft=vim
308 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
309endfunction
310
311function! s:suite.NoArgument_EditVimFile_GetVimIcon()
312 edit! test.vim
313 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
314endfunction
315
316function! s:suite.NoArgument_Editvimrc_GetVimIcon()
317 edit! vimrc
318 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
319endfunction
320
321function! s:suite.NoArgument_EditPythonFile_GetPythonIcon()
322 edit! test.py
323 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
324endfunction
325
326function! s:suite.NoArgument_EditjavaScriptFile_GetjavaScriptIcon()
327 edit! test.js
328 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
329endfunction
330
331function! s:suite.NoArgument_EditRustFile_GetRustIcon()
332 edit! test.rs
333 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
334endfunction
335
336function! s:suite.NoArgument_EditMKFile_GetGearIcon()
337 edit! test.mk
338 call s:assert.equals(WebDevIconsGetFileTypeSymbol(), '')
339endfunction
340
341function! s:suite.OneArgument_EditPythonFile_GetRubyIcon()
342 edit! test.py
343 call s:assert.equals(WebDevIconsGetFileTypeSymbol('test.rb'), '')
344endfunction