@@ -156,7 +156,7 @@ function! s:suite.custom_void_string()
156
156
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' } }
157
157
call lightline#init ()
158
158
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
159
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
159
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
160
160
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
161
161
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
162
162
delfunction Custom
@@ -169,7 +169,7 @@ function! s:suite.custom_type_void_string()
169
169
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' }, ' component_type' : { ' custom' : ' custom' } }
170
170
call lightline#init ()
171
171
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
172
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
172
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
173
173
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
174
174
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
175
175
delfunction Custom
@@ -208,7 +208,7 @@ function! s:suite.custom_void_string_array()
208
208
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' } }
209
209
call lightline#init ()
210
210
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
211
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
211
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
212
212
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
213
213
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
214
214
delfunction Custom
@@ -221,7 +221,7 @@ function! s:suite.custom_type_void_string_array()
221
221
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' }, ' component_type' : { ' custom' : ' custom' } }
222
222
call lightline#init ()
223
223
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
224
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
224
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
225
225
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
226
226
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
227
227
delfunction Custom
@@ -234,7 +234,7 @@ function! s:suite.custom_void_string_array_2()
234
234
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' } }
235
235
call lightline#init ()
236
236
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
237
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
237
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
238
238
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
239
239
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
240
240
delfunction Custom
@@ -247,7 +247,7 @@ function! s:suite.custom_type_void_string_array_2()
247
247
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' }, ' component_type' : { ' custom' : ' custom' } }
248
248
call lightline#init ()
249
249
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
250
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
250
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
251
251
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
252
252
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
253
253
delfunction Custom
@@ -469,7 +469,7 @@ function! s:suite.custom_error()
469
469
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' } }
470
470
call lightline#init ()
471
471
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
472
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
472
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
473
473
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
474
474
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
475
475
delfunction Custom
@@ -483,7 +483,7 @@ function! s:suite.custom_type_error()
483
483
let g: lightline = { ' component_expand' : { ' custom' : ' Custom' }, ' component_type' : { ' custom' : ' custom' } }
484
484
call lightline#init ()
485
485
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
486
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
486
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
487
487
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
488
488
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
489
489
delfunction Custom
@@ -493,7 +493,7 @@ function! s:suite.notfound()
493
493
let g: lightline = { ' component_expand' : { ' custom' : ' NotFound' } }
494
494
call lightline#init ()
495
495
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
496
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
496
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
497
497
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
498
498
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
499
499
endfunction
@@ -502,7 +502,7 @@ function! s:suite.custom_type_notfound()
502
502
let g: lightline = { ' component_expand' : { ' custom' : ' NotFound' }, ' component_type' : { ' custom' : ' custom' } }
503
503
call lightline#init ()
504
504
call s: assert .equals (s: expand ([[' readonly' , ' filename' ], [' custom' ], [' modified' ]]),
505
- \ [[[' readonly' , ' filename' ], [' modified' ]], [[0 , 0 ], [0 ]], [' 0' , ' 2' , ' 3' ]])
505
+ \ [[[' readonly' , ' filename' ], [], [ ' modified' ]], [[0 , 0 ], [], [ 0 ]], [' 0' , ' 1 ' , ' 2' , ' 3' ]])
506
506
call s: assert .equals (s: expand ([[' readonly' , ' filename' , ' custom' , ' modified' ]]),
507
507
\ [[[' readonly' , ' filename' , ' modified' ]], [[0 , 0 , 0 ]], [' 0' , ' 1' ]])
508
508
endfunction
0 commit comments