mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.3810: Vim9: expr4 test fails on MS-Windows
Problem: Vim9: expr4 test fails on MS-Windows. Solution: Do not give an error for a missing function name when skipping.
This commit is contained in:
@@ -646,8 +646,16 @@ def Test_expr4_equal()
|
||||
assert_equal(false, function('g:Test_expr4_equal', [123]) == function('g:Test_expr4_is', [123]))
|
||||
assert_equal(false, function('g:Test_expr4_equal', [123]) == function('g:Test_expr4_equal', [999]))
|
||||
|
||||
# TODO: this unexpectedly sometimes fails on Appveyor
|
||||
if !has('win32')
|
||||
if true
|
||||
var OneFunc: func
|
||||
var TwoFunc: func
|
||||
OneFunc = function('len')
|
||||
TwoFunc = function('len')
|
||||
assert_equal(true, OneFunc('abc') == TwoFunc('123'))
|
||||
endif
|
||||
|
||||
# check this doesn't fail when skipped
|
||||
if false
|
||||
var OneFunc: func
|
||||
var TwoFunc: func
|
||||
OneFunc = function('len')
|
||||
|
Reference in New Issue
Block a user