Skip to content

Commit

Permalink
test: Drop 8.2 check
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho committed Dec 31, 2024
1 parent 57981e5 commit 0aec0fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
6 changes: 1 addition & 5 deletions test/Data/String/Interpolation.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ Describe Data.String.Interpolation
End
It handle reassignment different type
Assert Equals(g:I.interpolate('${a} ${b}', {'a': 1, 'b': '1'}), '1 1')
if !has('patch-8.2.2948')
Throws /Vim(let):E806:/ g:I.interpolate('${a} ${b}', {'a': 1, 'b': 1.0E-6})
else
Assert Equals(g:I.interpolate('${a} ${b}', {'a': 1, 'b': 1.0E-6}), '1 1.0e-6')
endif
Assert Equals(g:I.interpolate('${a} ${b}', {'a': 1, 'b': 1.0E-6}), '1 1.0e-6')
End
It doesn't raise Vim(let):E704: Funcref variable name must start with a capital
Throws /Vim(let):E729:/ g:I.interpolate('${Funcref}', {'Funcref': function('InterpolationFunc')})
Expand Down
12 changes: 3 additions & 9 deletions test/Deprecated/Text/Sexp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ function! s:suite.parse()
if !s:has_lua
call s:assert.skip('Vital.Deprecated.Text.Sexp: any function call needs if_lua')
endif
if has('patch-8.2.0775')
call s:assert.equals(
\ s:S.parse('(a b c)'),
\ [[{'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'}]])
else
call s:assert.equals(
\ s:S.parse('(a b c)'),
\ [[{'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'}]])
endif
call s:assert.equals(
\ s:S.parse('(a b c)'),
\ [[{'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'}]])
endfunction

0 comments on commit 0aec0fe

Please sign in to comment.