Skip to content

Commit 880320d

Browse files
committed
Color: check if test_null_blob() exists
1 parent 8f36e48 commit 880320d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Color.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function! s:suite.error_parse()
9595
\ v:null,
9696
\ test_null_job(),
9797
\ test_null_channel(),
98-
\ test_null_blob(),
98+
\] + (exists('*test_null_blob') ? [test_null_blob()] : []) + [
9999
\ '',
100100
\ '#',
101101
\ '#d',
@@ -138,7 +138,7 @@ function! s:suite.error_rgb()
138138
\ repeat([v:null], 3),
139139
\ repeat([test_null_job()], 3),
140140
\ repeat([test_null_channel()], 3),
141-
\ repeat([test_null_blob()], 3),
141+
\] + (exists('*test_null_blob') ? [repeat([test_null_blob()], 3)] : []) + [
142142
\ [-1, 0, 0],
143143
\ [-2, 0, 0],
144144
\ [0, -1, 0],
@@ -171,7 +171,7 @@ function! s:suite.error_hsl()
171171
\ repeat([v:null], 3),
172172
\ repeat([test_null_job()], 3),
173173
\ repeat([test_null_channel()], 3),
174-
\ repeat([test_null_blob()], 3),
174+
\] + (exists('*test_null_blob') ? [repeat([test_null_blob()], 3)] : []) + [
175175
\ [-1, 0, 0],
176176
\ [-2, 0, 0],
177177
\ [0, -1, 0],
@@ -203,7 +203,7 @@ function! s:suite.error_xterm()
203203
\ v:null,
204204
\ test_null_job(),
205205
\ test_null_channel(),
206-
\ test_null_blob(),
206+
\] + (exists('*test_null_blob') ? [test_null_blob()] : []) + [
207207
\ -2,
208208
\ -1,
209209
\ 256,

0 commit comments

Comments
 (0)