Skip to content

Commit 544aac9

Browse files
committed
Deprecated.Text.Sexp: separate test via patch-8.2.0775
fixes #746
1 parent 627a237 commit 544aac9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/Deprecated/Text/Sexp.vim

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ function! s:suite.parse()
1919
if !s:has_lua
2020
call s:assert.skip('Vital.Deprecated.Text.Sexp: any function call needs if_lua')
2121
endif
22-
call s:assert.equals(
23-
\ s:S.parse('(a b c)'),
24-
\ [[{'label': 'identifier', 'col': 2.0, 'matched_text': 'a'}, {'label': 'whitespace', 'col': 3.0, 'matched_text': ' '}, {'label': 'identifier', 'col': 4.0, 'matched_text': 'b'}, {'label': 'whitespace', 'col': 5.0, 'matched_text': ' '}, {'label': 'identifier', 'col': 6.0, 'matched_text': 'c'}]])
22+
if has('patch-8.2.0775')
23+
call s:assert.equals(
24+
\ s:S.parse('(a b c)'),
25+
\ [[{'label': 'identifier', 'col': 2, 'matched_text': 'a'}, {'label': 'whitespace', 'col': 3, 'matched_text': ' '}, {'label': 'identifier', 'col': 4, 'matched_text': 'b'}, {'label': 'whitespace', 'col': 5, 'matched_text': ' '}, {'label': 'identifier', 'col': 6, 'matched_text': 'c'}]])
26+
else
27+
call s:assert.equals(
28+
\ s:S.parse('(a b c)'),
29+
\ [[{'label': 'identifier', 'col': 2.0, 'matched_text': 'a'}, {'label': 'whitespace', 'col': 3.0, 'matched_text': ' '}, {'label': 'identifier', 'col': 4.0, 'matched_text': 'b'}, {'label': 'whitespace', 'col': 5.0, 'matched_text': ' '}, {'label': 'identifier', 'col': 6.0, 'matched_text': 'c'}]])
30+
endif
2531
endfunction

0 commit comments

Comments
 (0)