Skip to content

Commit 627a237

Browse files
committed
Deprecated.Text.Sexp: skip the before block in test
Because error throws in the before block.
1 parent 869b9e3 commit 627a237

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Deprecated/Text/Sexp.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ scriptencoding utf-8
22

33
let s:suite = themis#suite('Deprecated.Text.Sexp')
44
let s:assert = themis#helper('assert')
5+
let s:has_lua = has('lua') && exists('*luaeval')
56

67
function! s:suite.before()
8+
if !s:has_lua
9+
return
10+
endif
711
let s:S = vital#vital#new().import('Deprecated.Text.Sexp')
812
endfunction
913

@@ -12,7 +16,7 @@ function! s:suite.after()
1216
endfunction
1317

1418
function! s:suite.parse()
15-
if !has('lua') || !exists('*luaeval')
19+
if !s:has_lua
1620
call s:assert.skip('Vital.Deprecated.Text.Sexp: any function call needs if_lua')
1721
endif
1822
call s:assert.equals(

0 commit comments

Comments
 (0)